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

Comparing deliantra/server/common/treasure.C (file contents):
Revision 1.5 by root, Wed Aug 30 06:06:27 2006 UTC vs.
Revision 1.6 by root, Thu Aug 31 18:59:23 2006 UTC

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}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines