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

Comparing deliantra/server/common/recipe.C (file contents):
Revision 1.39 by root, Fri Apr 16 07:32:03 2010 UTC vs.
Revision 1.40 by root, Wed Apr 28 19:49:50 2010 UTC

187 if (has_been_done) 187 if (has_been_done)
188 return; 188 return;
189 else 189 else
190 has_been_done = 1; 190 has_been_done = 1;
191 191
192 sprintf (filename, "%s/formulae", settings.datadir); 192 object_thawer thawer (settings.datadir, "formulae");
193 LOG (llevDebug, "Reading alchemical formulae from %s...\n", filename);
194
195 object_thawer thawer (filename);
196 193
197 if (!thawer) 194 if (!thawer)
198 { 195 {
199 LOG (llevError, "Can't open %s.\n", filename); 196 LOG (llevError, "Can't open %s.\n", thawer.name);
200 return; 197 return;
201 } 198 }
202 199
203 while (thawer.kw) 200 while (thawer.kw)
204 { 201 {
285 } 282 }
286 283
287next_object: ; 284next_object: ;
288 } 285 }
289 286
290 LOG (llevDebug, "done.\n");
291 /* Lastly, lets check for problems in formula we got */ 287 /* Lastly, lets check for problems in formula we got */
292 check_formulae (); 288 check_formulae ();
293} 289}
294 290
295/* Find a treasure with a matching name. The 'depth' parameter is 291/* Find a treasure with a matching name. The 'depth' parameter is

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines