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

Comparing deliantra/server/common/player.C (file contents):
Revision 1.36 by root, Mon Apr 21 23:35:24 2008 UTC vs.
Revision 1.37 by root, Wed Apr 30 06:40:28 2008 UTC

265 pl->destroy (); 265 pl->destroy ();
266 266
267 return 0; 267 return 0;
268} 268}
269 269
270const char *
271player::killer_name () const
272{
273 static char buf [2048];
274
275 if (!killer)
276 return "a dungeon collapse";
277 else if (killer->contr)
278 snprintf (buf, sizeof (buf), "%s the %s", &killer->name, &killer->title);
279 else if (killer->type == DEEP_SWAMP)
280 snprintf (buf, sizeof (buf), "drowning in a %s", &killer->name);
281 else if (killer->owner)
282 snprintf (buf, sizeof (buf), "%s's %s", &killer->owner->name, &killer->name);
283 else
284 return &killer->name;
285
286 return buf;
287}
288

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines