… | |
… | |
2534 | |
2534 | |
2535 | $map->load; |
2535 | $map->load; |
2536 | $map->load_neighbours; |
2536 | $map->load_neighbours; |
2537 | |
2537 | |
2538 | return unless $self->contr->active; |
2538 | return unless $self->contr->active; |
2539 | $self->flag (cf::FLAG_DEBUG, 0);#d# temp |
|
|
2540 | $self->activate_recursive; |
|
|
2541 | |
2539 | |
2542 | local $self->{_prev_pos} = $link_pos; # ugly hack for rent.ext |
2540 | local $self->{_prev_pos} = $link_pos; # ugly hack for rent.ext |
2543 | $self->enter_map ($map, $x, $y); |
2541 | $self->enter_map ($map, $x, $y); |
|
|
2542 | |
|
|
2543 | # only activate afterwards, to support waiting in hooks |
|
|
2544 | $self->activate_recursive; |
2544 | } |
2545 | } |
2545 | |
2546 | |
2546 | =item $player_object->goto ($path, $x, $y[, $check->($map)[, $done->()]]) |
2547 | =item $player_object->goto ($path, $x, $y[, $check->($map)[, $done->()]]) |
2547 | |
2548 | |
2548 | Moves the player to the given map-path and coordinates by first freezing |
2549 | Moves the player to the given map-path and coordinates by first freezing |