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.37 by root, Sat Apr 23 04:56:45 2011 UTC vs.
Revision 1.38 by root, Sat Dec 31 06:18:01 2011 UTC

148} 148}
149 149
150sint64 150sint64
151level_to_min_exp (int level) 151level_to_min_exp (int level)
152{ 152{
153 if (level <= 0)
154 return 0;
155 else
156 return levels [min (level, settings.max_level)]; 153 return levels [clamp (level, 0, settings.max_level)];
157} 154}
158 155
159/* This loads the experience table from the exp_table 156/* This loads the experience table from the exp_table
160 * file. 157 * file.
161 */ 158 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines