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.8 by root, Sun Sep 3 08:05:39 2006 UTC vs.
Revision 1.9 by elmex, Sun Sep 3 14:33:48 2006 UTC

1 1
2/* 2/*
3 * static char *rcs_treasure_c = 3 * static char *rcs_treasure_c =
4 * "$Id: treasure.C,v 1.8 2006/09/03 08:05:39 root Exp $"; 4 * "$Id: treasure.C,v 1.9 2006/09/03 14:33:48 elmex 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
121 { 121 {
122 if ((t->item = find_archetype (variable)) == NULL) 122 if ((t->item = find_archetype (variable)) == NULL)
123 LOG (llevError, "Treasure lacks archetype: %s\n", variable); 123 LOG (llevError, "Treasure lacks archetype: %s\n", variable);
124 } 124 }
125 else if (sscanf (cp, "list %s", variable)) 125 else if (sscanf (cp, "list %s", variable))
126 t->name = variable; 126 t->name = variable;
127 else if (sscanf (cp, "change_name %s", variable)) 127 else if (sscanf (cp, "change_name %s", variable))
128 t->change_arch.name = variable; 128 t->change_arch.name = variable;
129 else if (sscanf (cp, "change_title %s", variable)) 129 else if (sscanf (cp, "change_title %s", variable))
130 t->change_arch.title = variable; 130 t->change_arch.title = variable;
131 else if (sscanf (cp, "change_slaying %s", variable)) 131 else if (sscanf (cp, "change_slaying %s", variable))
268 if (!name || !*name) 268 if (!name || !*name)
269 return NULL; 269 return NULL;
270 270
271 if (tmp != NULL) 271 if (tmp != NULL)
272 for (tl = first_treasurelist; tl != NULL; tl = tl->next) 272 for (tl = first_treasurelist; tl != NULL; tl = tl->next)
273 {
273 if (tmp == tl->name) 274 if (tmp == tl->name)
274 return tl; 275 return tl;
276 }
275 277
278 if (first_treasurelist)
276 LOG (llevError, "Couldn't find treasurelist %s\n", name); 279 LOG (llevError, "Couldn't find treasurelist %s(%s)\n", name, tmp);
280
277 return NULL; 281 return NULL;
278} 282}
279 283
280 284
281/* 285/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines