--- deliantra/server/common/holy.C 2006/09/10 16:00:23 1.5 +++ deliantra/server/common/holy.C 2007/01/27 02:19:36 1.7 @@ -30,7 +30,7 @@ { archetype *at = NULL; - LOG (llevDebug, "Initializing gods..."); + LOG (llevDebug, "Initialising gods...\n"); for (at = first_archetype; at != NULL; at = at->next) if (at->clone.type == GOD) add_god_to_list (at); @@ -107,12 +107,13 @@ int i; if (god) - for (i = RANDOM () % (god->id) + 1; god; god = god->next) + for (i = rndm (god->id) + 1; god; god = god->next) if (god->id == i) break; if (!god) LOG (llevError, "get_rand_god(): can't find a random god!\n"); + return god; }