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

Comparing deliantra/server/server/attack.C (file contents):
Revision 1.82 by root, Tue Apr 22 07:01:47 2008 UTC vs.
Revision 1.83 by root, Wed Apr 30 06:40:28 2008 UTC

1624 } 1624 }
1625 1625
1626 op->destroy (); 1626 op->destroy ();
1627 } 1627 }
1628 else 1628 else
1629 {
1630 /* Player has been killed! */ 1629 /* Player has been killed! */
1631 if (owner->type == PLAYER) 1630 op->contr->killer = owner->type == PLAYER ? owner : hitter;
1632 snprintf (op->contr->killer, sizeof (op->contr->killer), "%s the %s", &owner->name, owner->contr->title);
1633 else
1634 assign (op->contr->killer, hitter->name);
1635 }
1636 1631
1637 /* This was return -1 - that doesn't seem correct - if we return -1, process 1632 /* This was return -1 - that doesn't seem correct - if we return -1, process
1638 * continues in the calling function. 1633 * continues in the calling function.
1639 */ 1634 */
1640 return maxdam; 1635 return maxdam;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines