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

Comparing deliantra/server/common/exp.C (file contents):
Revision 1.34 by root, Wed Apr 28 20:51:58 2010 UTC vs.
Revision 1.36 by root, Thu May 6 22:35:41 2010 UTC

155 else 155 else
156 return levels [min (level, settings.max_level)]; 156 return levels [min (level, settings.max_level)];
157} 157}
158 158
159/* This loads the experience table from the exp_table 159/* This loads the experience table from the exp_table
160 * file. This tends to exit on any errors, since it 160 * file.
161 * populates the table as it goes along, so if there
162 * are errors, the table is likely in an inconsistent
163 * state.
164 */ 161 */
165void 162void
166init_experience () 163reload_exp_table ()
167{ 164{
168 int lastlevel = 0; 165 int lastlevel = 0;
169 sint64 lastexp = -1; 166 sint64 lastexp = -1;
170 167
171 object_thawer thawer (settings.datadir, "exp_table"); 168 object_thawer thawer (settings.datadir, "exp_table");
172 169
173 if (!thawer) 170 if (!thawer)
174 { 171 {
175 LOG (llevError, "unable to parse experience table file"); 172 LOG (llevError, "unable to load experience table file");
176 return; 173 return;
177 } 174 }
178 175
179 if (thawer.kw != KW_max_level) 176 if (thawer.kw != KW_max_level)
180 { 177 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines