1 | |
1 | |
2 | /* |
2 | /* |
3 | * static char *rcs_treasure_c = |
3 | * static char *rcs_treasure_c = |
4 | * "$Id: treasure.C,v 1.5 2006/08/30 06:06:27 root Exp $"; |
4 | * "$Id: treasure.C,v 1.6 2006/08/31 18:59:23 root Exp $"; |
5 | */ |
5 | */ |
6 | |
6 | |
7 | /* |
7 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
8 | CrossFire, A Multiplayer game for X-windows |
9 | |
9 | |
… | |
… | |
163 | LOG(llevError,"Treasurelist %s has element with no name or archetype\n", tl->name); |
163 | LOG(llevError,"Treasurelist %s has element with no name or archetype\n", tl->name); |
164 | if (t->chance>=100 && t->next_yes && (t->next || t->next_no)) |
164 | if (t->chance>=100 && t->next_yes && (t->next || t->next_no)) |
165 | LOG(llevError,"Treasurelist %s has element that has 100%% generation, next_yes field as well as next or next_no\n", |
165 | LOG(llevError,"Treasurelist %s has element that has 100%% generation, next_yes field as well as next or next_no\n", |
166 | tl->name); |
166 | tl->name); |
167 | /* find_treasurelist will print out its own error message */ |
167 | /* find_treasurelist will print out its own error message */ |
168 | if (t->name && strcmp(t->name,"NONE")) |
168 | if (t->name && *t->name) |
169 | (void) find_treasurelist(t->name); |
169 | (void) find_treasurelist(t->name); |
170 | if (t->next) check_treasurelist(t->next, tl); |
170 | if (t->next) check_treasurelist(t->next, tl); |
171 | if (t->next_yes) check_treasurelist(t->next_yes,tl); |
171 | if (t->next_yes) check_treasurelist(t->next_yes,tl); |
172 | if (t->next_no) check_treasurelist(t->next_no, tl); |
172 | if (t->next_no) check_treasurelist(t->next_no, tl); |
173 | } |
173 | } |