--- deliantra/server/ext/follow.ext 2007/01/05 01:06:26 1.7 +++ deliantra/server/ext/follow.ext 2007/01/14 18:00:34 1.9 @@ -12,7 +12,7 @@ cf::sync_job { while (my ($name, $v) = each %follow) { my ($target, $his, $mine) = @$v; - my ($who, $other) = (cf::player::find $name, cf::player::find $target); + my ($who, $other) = (cf::player::find_active $name, cf::player::find_active $target); if ($who && $other && $other->ob->map) { my ($map, $x, $y) = ($other->ob->map->path, $other->ob->x, $other->ob->y); @@ -48,8 +48,8 @@ my $name = $who->name; if ($args ne "" && $name ne $args) { - if (my $other = cf::player::find $args) { - if ($other->ob->map eq $who->map + if (my $other = cf::player::find_active $args) { + if ($other->ob->map == $who->map && abs ($other->ob->x - $who->x) <= 1 && abs ($other->ob->y - $who->y) <= 1) { $who->message ("Following player '$args', to stop, type: 'follow");