… | |
… | |
24 | $portal->free; |
24 | $portal->free; |
25 | } |
25 | } |
26 | |
26 | |
27 | my %follow; |
27 | my %follow; |
28 | |
28 | |
29 | my $timer = Event->timer (interval => 0.2, parked => 1, cb => sub { |
29 | my $timer = Event->timer (interval => 0.2, parked => 1, data => cf::WF_AUTOCANCEL, cb => sub { |
30 | while (my ($name, $v) = each %follow) { |
30 | while (my ($name, $v) = each %follow) { |
31 | my ($target, $his, $mine) = @$v; |
31 | my ($target, $his, $mine) = @$v; |
32 | my ($who, $other) = (cf::player::find $name, cf::player::find $target); |
32 | my ($who, $other) = (cf::player::find $name, cf::player::find $target); |
33 | |
33 | |
34 | if ($who && $other && $other->ob->map) { |
34 | if ($who && $other && $other->ob->map) { |