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.49 by root, Mon Dec 29 07:43:36 2008 UTC vs.
Revision 1.50 by root, Thu Jan 1 15:43:35 2009 UTC

592 { 592 {
593 /* for golems with race fields, we don't attack 593 /* for golems with race fields, we don't attack
594 * aligned races 594 * aligned races
595 */ 595 */
596 596
597 if (victim->race && op->race && strstr (op->race, victim->race)) 597 if (victim->race && op->race && op->race.contains (victim->race))
598 { 598 {
599 if (op->owner) 599 if (op->owner)
600 new_draw_info_format (NDI_UNIQUE, 0, op->owner, "%s avoids damaging %s.", &op->name, &victim->name); 600 new_draw_info_format (NDI_UNIQUE, 0, op->owner, "%s avoids damaging %s.", &op->name, &victim->name);
601 } 601 }
602 else if (victim == op->owner) 602 else if (victim == op->owner)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines