ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/maps/perl/follow.ext
(Generate patch)

Comparing cf.schmorp.de/maps/perl/follow.ext (file contents):
Revision 1.18 by root, Tue Jul 11 15:37:31 2006 UTC vs.
Revision 1.19 by root, Sun Jul 16 17:52:57 2006 UTC

25} 25}
26 26
27my %follow; 27my %follow;
28 28
29my $timer = Event->timer (interval => 0.2, parked => 1, cb => sub { 29my $timer = Event->timer (interval => 0.2, parked => 1, cb => sub {
30 warn "follow\n";#d#
31
32 while (my ($name, $v) = each %follow) { 30 while (my ($name, $v) = each %follow) {
33 my ($target, $his, $mine) = @$v; 31 my ($target, $his, $mine) = @$v;
34 my ($who, $other) = (cf::player::find $name, cf::player::find $target); 32 my ($who, $other) = (cf::player::find $name, cf::player::find $target);
35 33
36 if ($who && $other && $other->ob->map) { 34 if ($who && $other && $other->ob->map) {
109} 107}
110 108
111 109
112 110
113 111
114

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines