ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.152 by root, Mon Jan 8 22:32:10 2007 UTC vs.
Revision 1.153 by root, Mon Jan 8 23:36:16 2007 UTC

1671=cut 1671=cut
1672 1672
1673sub cf::object::player::goto { 1673sub cf::object::player::goto {
1674 my ($self, $path, $x, $y) = @_; 1674 my ($self, $path, $x, $y) = @_;
1675 1675
1676 $path = new cf::path $path;
1677 $path ne "/" or Carp::cluck ("oy");#d#
1678
1676 $self->enter_link; 1679 $self->enter_link;
1677 1680
1678 (async { 1681 (async {
1679 $path = new cf::path $path;
1680
1681 my $map = cf::map::find $path->as_string; 1682 my $map = cf::map::find $path->as_string;
1682 $map = $map->customise_for ($self) if $map; 1683 $map = $map->customise_for ($self) if $map;
1683 1684
1684# warn "entering ", $map->path, " at ($x, $y)\n" 1685# warn "entering ", $map->path, " at ($x, $y)\n"
1685# if $map; 1686# if $map;
1686 1687
1687 $map or Carp::cluck ("oy");#d#
1688 $map or $self->message ("The exit to '" . ($path->visible_name) . "' is closed", cf::NDI_UNIQUE | cf::NDI_RED); 1688 $map or $self->message ("The exit to '" . ($path->visible_name) . "' is closed", cf::NDI_UNIQUE | cf::NDI_RED);
1689 1689
1690 $self->leave_link ($map, $x, $y); 1690 $self->leave_link ($map, $x, $y);
1691 })->prio (1); 1691 })->prio (1);
1692} 1692}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines