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

Comparing deliantra/server/ext/chat.ext (file contents):
Revision 1.52 by root, Wed Apr 21 03:34:26 2010 UTC vs.
Revision 1.53 by root, Wed Apr 21 06:11:37 2010 UTC

799 # within a 5x5 square that have something resembling 799 # within a 5x5 square that have something resembling
800 # dialogue or support on_say. 800 # dialogue or support on_say.
801 # we prefer the nearest items NOT in the player, otherwise in player. 801 # we prefer the nearest items NOT in the player, otherwise in player.
802 my ($map, $x, $y) = ($ob->map, $ob->x, $ob->y); 802 my ($map, $x, $y) = ($ob->map, $ob->x, $ob->y);
803 803
804 for my $dir (0 .. cf::SIZEOFFREE2) { 804 for my $dir (
805 0,
806 1, 3, 5, 7,
807 2, 4, 6, 8,
808 9 .. cf::SIZEOFFREE2
809 ) {
805 @npc = grep $_->should_invoke (cf::EVENT_OBJECT_SAY) || $_->has_dialogue, 810 @npc = grep $_->should_invoke (cf::EVENT_OBJECT_SAY) || $_->has_dialogue,
806 map +($_, $_->inv), 811 map +($_, $_->inv),
807 grep $_ != $ob, 812 grep $_ != $ob,
808 $map->at ($x, $y, $dir) 813 $map->at ($x, $y, $dir)
809 and last; 814 and last;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines