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.29 by root, Mon Sep 29 10:32:50 2008 UTC vs.
Revision 1.30 by root, Sat Dec 27 02:31:19 2008 UTC

57 { 57 {
58 LOG (llevError, "resurrect_player: race set to %s, but no treasurelist of that name!\n", &spell->race); 58 LOG (llevError, "resurrect_player: race set to %s, but no treasurelist of that name!\n", &spell->race);
59 return 0; 59 return 0;
60 } 60 }
61 61
62 value = RANDOM () % tl->total_chance; 62 value = rndm (tl->total_chance);
63 63
64 for (t = tl->items; t; t = t->next) 64 for (t = tl->items; t; t = t->next)
65 { 65 {
66 value -= t->chance; 66 value -= t->chance;
67 if (value < 0) 67 if (value < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines