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

Comparing deliantra/server/server/resurrection.C (file contents):
Revision 1.21 by root, Mon May 28 21:28:36 2007 UTC vs.
Revision 1.22 by root, Mon Jun 4 12:19:09 2007 UTC

73 { 73 {
74 LOG (llevError, "resurrect_player: got null treasure from treasurelist %s!\n", &spell->race); 74 LOG (llevError, "resurrect_player: got null treasure from treasurelist %s!\n", &spell->race);
75 return 0; 75 return 0;
76 } 76 }
77 77
78 race = t->item->name; 78 race = t->item->archname;
79 } 79 }
80 80
81 /* set up our paths/strings... */ 81 /* set up our paths/strings... */
82 sprintf (path, "%s/%s/%s/%s", settings.localdir, settings.playerdir, playername, playername); 82 sprintf (path, "%s/%s/%s/%s", settings.localdir, settings.playerdir, playername, playername);
83 83
212 if (resurrection_fails (clevel, leveldead)) 212 if (resurrection_fails (clevel, leveldead))
213 { 213 {
214 if (spell->randomitems) 214 if (spell->randomitems)
215 for (treasure *t = spell->randomitems->items; t; t = t->next) 215 for (treasure *t = spell->randomitems->items; t; t = t->next)
216 if (t->item) 216 if (t->item)
217 summon_hostile_monsters (op, t->nrof, t->item->name); 217 summon_hostile_monsters (op, t->nrof, t->item->archname);
218 218
219 return 1; 219 return 1;
220 220
221 } 221 }
222 else 222 else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines