ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.365 by root, Tue Sep 11 13:27:56 2007 UTC vs.
Revision 1.367 by root, Wed Sep 12 11:10:11 2007 UTC

2462 (async { 2462 (async {
2463 # *tag paths override both path and x|y 2463 # *tag paths override both path and x|y
2464 if ($path =~ /^\*(.*)$/) { 2464 if ($path =~ /^\*(.*)$/) {
2465 if (my @obs = grep $_->map, ext::map_tags::find $1) { 2465 if (my @obs = grep $_->map, ext::map_tags::find $1) {
2466 my $ob = $obs[rand @obs]; 2466 my $ob = $obs[rand @obs];
2467
2468 # see if we actually can go there
2469 # todo: use ob_blocked to check all tiles of the destination "object"
2470 # for suitability.
2471
2467 ($path, $x, $y) = ($ob->map, $ob->x, $ob->y); 2472 ($path, $x, $y) = ($ob->map, $ob->x, $ob->y);
2468 } 2473 }
2469 } 2474 }
2470 2475
2471 my $map = eval { 2476 my $map = eval {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines