ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/follow.ext
(Generate patch)

Comparing deliantra/server/ext/follow.ext (file contents):
Revision 1.8 by root, Sun Jan 7 02:39:14 2007 UTC vs.
Revision 1.11 by root, Mon Oct 8 14:00:29 2007 UTC

23 } 23 }
24 24
25 my $map; 25 my $map;
26 26
27 if ($map = cf::map::find $mine->[0] 27 if ($map = cf::map::find $mine->[0]
28 and $map =~ /^\// # short-gap fix
28 and !grep $_->flag (cf::FLAG_UNIQUE) && $_->flag (cf::FLAG_IS_FLOOR), 29 and !grep +($_->flag (cf::FLAG_UNIQUE) || $_->type == cf::SHOP_FLOOR) && $_->flag (cf::FLAG_IS_FLOOR),
29 $map->at ($mine->[1], $mine->[2])) { 30 $map->at ($mine->[1], $mine->[2])) {
30 $who->ob->goto (@$mine); 31 $who->ob->goto (@$mine);
31 } else { 32 } else {
32 delete $follow{$name}; 33 delete $follow{$name};
33 $who->ob->message ("You can't follow $target anymore!"); 34 $who->ob->message ("You can't follow $target anymore!");
47 48
48 my $name = $who->name; 49 my $name = $who->name;
49 50
50 if ($args ne "" && $name ne $args) { 51 if ($args ne "" && $name ne $args) {
51 if (my $other = cf::player::find_active $args) { 52 if (my $other = cf::player::find_active $args) {
52 if ($other->ob->map eq $who->map 53 if ($other->ob->map == $who->map
53 && abs ($other->ob->x - $who->x) <= 1 54 && abs ($other->ob->x - $who->x) <= 1
54 && abs ($other->ob->y - $who->y) <= 1) { 55 && abs ($other->ob->y - $who->y) <= 1) {
55 $who->message ("Following player '$args', to stop, type: 'follow"); 56 $who->message ("Following player '$args', to stop, type: 'follow");
56 $other->ob->message ("$name is now following your every step..."); 57 $other->ob->message ("$name is now following your every step...");
57 $follow{$name} = [ 58 $follow{$name} = [

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines