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.16 by root, Sun Sep 10 16:00:23 2006 UTC vs.
Revision 1.17 by root, Tue Sep 12 18:15:34 2006 UTC

1 1
2/* 2/*
3 * static char *rcs_treasure_c = 3 * static char *rcs_treasure_c =
4 * "$Id: treasure.C,v 1.16 2006/09/10 16:00:23 root Exp $"; 4 * "$Id: treasure.C,v 1.17 2006/09/12 18:15:34 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
259 */ 259 */
260 260
261treasurelist * 261treasurelist *
262find_treasurelist (const char *name) 262find_treasurelist (const char *name)
263{ 263{
264 /* Special cases - randomitems of NULL is to override default. If 264 shstr_cmp name_ (name);
265 * first_treasurelist is null, it means we are on the first pass of 265
266 * of loading archetypes, so for now, just return - second pass will
267 * init these values.
268 */
269 if (!name) 266 if (!name_)
270 return 0; 267 return 0;
271 268
272 if (const char *tmp = shstr::find (name))
273 for (treasurelist * tl = first_treasurelist; tl != 0; tl = tl->next) 269 for (treasurelist * tl = first_treasurelist; tl != 0; tl = tl->next)
274 if (tmp == tl->name) 270 if (name_ == tl->name)
275 return tl; 271 return tl;
276 272
277 if (first_treasurelist) 273 if (first_treasurelist)
278 LOG (llevError, "Couldn't find treasurelist %s\n", name); 274 LOG (llevError, "Couldn't find treasurelist %s\n", name);
279 275
280 return 0; 276 return 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines