1 | /* |
1 | /* |
2 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
3 | |
3 | |
|
|
4 | Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team |
4 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
5 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
5 | Copyright (C) 1992 Frank Tore Johansen |
6 | Copyright (C) 1992 Frank Tore Johansen |
6 | |
7 | |
7 | This program is free software; you can redistribute it and/or modify |
8 | This program is free software; you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by |
9 | it under the terms of the GNU General Public License as published by |
… | |
… | |
202 | /* Do some sanity checking - if value is bogus, just exit because |
203 | /* Do some sanity checking - if value is bogus, just exit because |
203 | * the table otherwise is probably in an inconsistent state |
204 | * the table otherwise is probably in an inconsistent state |
204 | */ |
205 | */ |
205 | if (tmpexp <= lastexp) |
206 | if (tmpexp <= lastexp) |
206 | { |
207 | { |
207 | LOG (llevError, "Experience for level %d is lower than previous level (%" I64_PFd " <= %" I64_PFd ")\n", lastlevel + 1, tmpexp, lastexp); |
208 | LOG (llevError, "Experience for level %d is lower than previous level (%" PRId64 " <= %" PRId64 ")\n", lastlevel + 1, tmpexp, lastexp); |
208 | exit (1); |
209 | exit (1); |
209 | } |
210 | } |
210 | lastlevel++; |
211 | lastlevel++; |
211 | if (lastlevel > settings.max_level) |
212 | if (lastlevel > settings.max_level) |
212 | { |
213 | { |