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.42 by root, Mon Apr 16 10:14:25 2007 UTC vs.
Revision 1.43 by root, Mon Apr 16 11:09:30 2007 UTC

205/* 205/*
206 * Opens LIBDIR/treasure and reads all treasure-declarations from it. 206 * Opens LIBDIR/treasure and reads all treasure-declarations from it.
207 * Each treasure is parsed with the help of load_treasure(). 207 * Each treasure is parsed with the help of load_treasure().
208 */ 208 */
209bool 209bool
210load_treasures () 210load_treasure_file (const char *filename)
211{ 211{
212 treasure *t; 212 treasure *t;
213 int comp, line = 0; 213 int comp, line = 0;
214
215 char filename[MAX_BUF];
216 sprintf (filename, "%s/%s", settings.datadir, settings.treasures);
217 214
218 object_thawer f (filename); 215 object_thawer f (filename);
219 216
220 if (!f) 217 if (!f)
221 { 218 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines