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.135 by root, Thu Jan 4 20:29:46 2007 UTC vs.
Revision 1.136 by root, Fri Jan 5 01:06:28 2007 UTC

1559 }; 1559 };
1560 } 1560 }
1561 }, 1561 },
1562); 1562);
1563 1563
1564=item $player_object->goto_map ($path, $x, $y) 1564=item $player_object->goto ($path, $x, $y)
1565 1565
1566=cut 1566=cut
1567 1567
1568sub cf::object::player::goto_map { 1568sub cf::object::player::goto {
1569 my ($self, $path, $x, $y) = @_; 1569 my ($self, $path, $x, $y) = @_;
1570 1570
1571 $self->enter_link; 1571 $self->enter_link;
1572 1572
1573 (cf::async { 1573 (cf::async {
1647 unless (eval { 1647 unless (eval {
1648 prepare_random_map $exit 1648 prepare_random_map $exit
1649 if $exit->slaying eq "/!"; 1649 if $exit->slaying eq "/!";
1650 1650
1651 my $path = new cf::path $exit->slaying, $exit->map && $exit->map->path; 1651 my $path = new cf::path $exit->slaying, $exit->map && $exit->map->path;
1652 $self->goto_map ($path, $exit->stats->hp, $exit->stats->sp); 1652 $self->goto ($path, $exit->stats->hp, $exit->stats->sp);
1653 1653
1654 1; 1654 1;
1655 }) { 1655 }) {
1656 $self->message ("Something went wrong deep within the crossfire server. " 1656 $self->message ("Something went wrong deep within the crossfire server. "
1657 . "I'll try to bring you back to the map you were before. " 1657 . "I'll try to bring you back to the map you were before. "

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines