… | |
… | |
2657 | |
2657 | |
2658 | local $self->{_prev_pos} = $link_pos; # ugly hack for rent.ext |
2658 | local $self->{_prev_pos} = $link_pos; # ugly hack for rent.ext |
2659 | $self->enter_map ($map, $x, $y); |
2659 | $self->enter_map ($map, $x, $y); |
2660 | |
2660 | |
2661 | # only activate afterwards, to support waiting in hooks |
2661 | # only activate afterwards, to support waiting in hooks |
2662 | $self->activate_recursive; |
2662 | $self->activate_recursive |
|
|
2663 | unless exists $self->{_link_pos}; # maybe we re in-flight again |
2663 | } |
2664 | } |
2664 | |
2665 | |
2665 | =item $player_object->goto ($path, $x, $y[, $check->($map)[, $done->()]]) |
2666 | =item $player_object->goto ($path, $x, $y[, $check->($map)[, $done->()]]) |
2666 | |
2667 | |
2667 | Moves the player to the given map-path and coordinates by first freezing |
2668 | Moves the player to the given map-path and coordinates by first freezing |