version 1.51 | | version 1.52 |
---|
| | |
/* | | /* |
* static char *rcsid_gods_c = | | * static char *rcsid_gods_c = |
* "$Id: gods.c,v 1.51 2005/08/14 18:21:01 akirschbaum Exp $"; | | * "$Id: gods.c,v 1.52 2005/08/14 19:06:19 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
if(op->type!= PLAYER && QUERY_FLAG(op,FLAG_ALIVE)) { | | if(op->type!= PLAYER && QUERY_FLAG(op,FLAG_ALIVE)) { |
| | |
| | /* find a god based on race */ |
if(!op->title) { | | if(!op->title) { |
if (op->race !=NULL) { | | if (op->race !=NULL) { |
godname=get_god_for_race(op->race); | | godname=get_god_for_race(op->race); |
| | |
op->title = add_string(godname); | | op->title = add_string(godname); |
} | | } |
} | | } |
else { | | } |
| | |
| | /* find a random god */ |
| | if(!op->title) { |
godlink *gl=first_god; | | godlink *gl=first_god; |
| | |
godnr = rndm(1, gl->id); | | godnr = rndm(1, gl->id); |
| | |
} | | } |
op->title = add_string(gl->name); | | op->title = add_string(gl->name); |
} | | } |
} | | |
return op->title; | | return op->title; |
} | | } |
| | |