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

Comparing deliantra/maps/perl/cfplus.ext (file contents):
Revision 1.14 by elmex, Mon Dec 4 15:15:08 2006 UTC vs.
Revision 1.15 by root, Fri Dec 15 19:06:29 2006 UTC

28 (version => 2) 28 (version => 2)
29}; 29};
30 30
31my %dialog; # currently active dialogs 31my %dialog; # currently active dialogs
32 32
33my $timer = Event->timer (interval => 0.2, parked => 1, cb => sub { 33my $timer = Event->timer (interval => 0.2, parked => 1, data => cf::WF_AUTOCANCEL, cb => sub {
34 while (my ($id, $dialog) = each %dialog) { 34 while (my ($id, $dialog) = each %dialog) {
35 my (undef, $dx, $dy) = $dialog->{ob}->rangevector ($dialog->{npc}); 35 my (undef, $dx, $dy) = $dialog->{ob}->rangevector ($dialog->{npc});
36 next if (abs $dx) <= 2 && (abs $dy) <= 2; 36 next if (abs $dx) <= 2 && (abs $dy) <= 2;
37 37
38 $dialog->{ob}->contr->ext_reply ($id => msgtype => "error", msg => "out of range"); 38 $dialog->{ob}->contr->ext_reply ($id => msgtype => "error", msg => "out of range");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines