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

Comparing deliantra/maps/perl/follow.ext (file contents):
Revision 1.15 by root, Sat Mar 25 04:47:56 2006 UTC vs.
Revision 1.16 by root, Tue Mar 28 16:08:19 2006 UTC

56 56
57 $portal->free; 57 $portal->free;
58} 58}
59 59
60sub on_player_death { 60sub on_player_death {
61 my ($event) = @_; 61 my ($ob) = @_;
62 62
63 my $ob = $event->{who};
64 my $name = $ob->name; 63 my $name = $ob->name;
65 64
66 delete $follow{$name}; 65 delete $follow{$name};
67 66
68 while (my ($k, $v) = each %follow) { 67 while (my ($k, $v) = each %follow) {
73 72
74 0 73 0
75} 74}
76 75
77sub on_clock { 76sub on_clock {
78 my ($event) = @_;
79
80 return 0 unless %follow; 77 return 0 unless %follow;
81 78
82 while (my ($name, $v) = each %follow) { 79 while (my ($name, $v) = each %follow) {
83 my ($target, $his, $mine) = @$v; 80 my ($target, $his, $mine) = @$v;
84 my ($who, $other) = (cf::player::find $name, cf::player::find $target); 81 my ($who, $other) = (cf::player::find $name, cf::player::find $target);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines