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

Comparing deliantra/server/common/holy.C (file contents):
Revision 1.6 by pippijn, Tue Jan 2 23:39:21 2007 UTC vs.
Revision 1.7 by root, Sat Jan 27 02:19:36 2007 UTC

105{ 105{
106 godlink *god = first_god; 106 godlink *god = first_god;
107 int i; 107 int i;
108 108
109 if (god) 109 if (god)
110 for (i = RANDOM () % (god->id) + 1; god; god = god->next) 110 for (i = rndm (god->id) + 1; god; god = god->next)
111 if (god->id == i) 111 if (god->id == i)
112 break; 112 break;
113 113
114 if (!god) 114 if (!god)
115 LOG (llevError, "get_rand_god(): can't find a random god!\n"); 115 LOG (llevError, "get_rand_god(): can't find a random god!\n");
116
116 return god; 117 return god;
117} 118}
118 119
119/* pntr_to_god_obj() - returns a pointer to the object 120/* pntr_to_god_obj() - returns a pointer to the object
120 * We need to be VERY carefull about using this, as we 121 * We need to be VERY carefull about using this, as we

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines