--- deliantra/server/ext/follow.ext 2010/05/25 20:10:29 1.24 +++ deliantra/server/ext/follow.ext 2011/05/04 19:04:44 1.26 @@ -37,7 +37,7 @@ $Coro::current->{desc} = "follow handler"; while () { - cf::wait_for_tick; + $cf::WAIT_FOR_TICK->wait; for (values %FOLLOW) { my ($who, $target, $queue) = @$_; @@ -57,7 +57,7 @@ # try to move to oldest position if (@$queue > $MAX_QUEUE) { $who->message ($target->name . " is too far away - you can't follow anymore!"); - unfollow $target->name; + unfollow $who->name; } elsif (@$queue) { my ($map, $x, $y) = @{ $queue->[0] };