--- deliantra/server/common/exp.C 2010/04/15 19:12:29 1.31 +++ deliantra/server/common/exp.C 2010/05/06 21:58:06 1.35 @@ -157,21 +157,15 @@ } /* This loads the experience table from the exp_table - * file. This tends to exit on any errors, since it - * populates the table as it goes along, so if there - * are errors, the table is likely in an inconsistent - * state. + * file. */ void init_experience () { - char buf[MAX_BUF], *cp; - int lastlevel = 0, comp; - sint64 lastexp = -1, tmpexp; + int lastlevel = 0; + sint64 lastexp = -1; - sprintf (buf, "%s/exp_table", settings.confdir); - - object_thawer thawer (buf); + object_thawer thawer (settings.datadir, "exp_table"); if (!thawer) { @@ -181,7 +175,7 @@ if (thawer.kw != KW_max_level) { - thawer.parse_error ("experience table file", "max_level"); + thawer.parse_error ("experience table file"); return; } @@ -191,6 +185,7 @@ while (thawer.next_line ()) { + sint64 tmpexp; thawer.get (tmpexp); /* Do some sanity checking - if value is bogus, just exit because