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

Comparing deliantra/server/server/pets.C (file contents):
Revision 1.41 by root, Thu Nov 8 19:43:27 2007 UTC vs.
Revision 1.42 by root, Sat Jan 5 03:44:59 2008 UTC

575 mflags = get_map_flags (m, &m, x, y, &x, &y); 575 mflags = get_map_flags (m, &m, x, y, &x, &y);
576 576
577 if (mflags & P_OUT_OF_MAP) 577 if (mflags & P_OUT_OF_MAP)
578 continue; 578 continue;
579 579
580 for (victim = GET_MAP_OB (op->map, x, y); victim; victim = victim->above) 580 for (victim = GET_MAP_OB (m, x, y); victim; victim = victim->above)
581 if (QUERY_FLAG (victim, FLAG_ALIVE)) 581 if (QUERY_FLAG (victim, FLAG_ALIVE))
582 break; 582 break;
583 583
584 /* We used to call will_hit_self to make sure we don't 584 /* We used to call will_hit_self to make sure we don't
585 * hit ourselves, but that didn't work, and I don't really 585 * hit ourselves, but that didn't work, and I don't really

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines