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.6 by root, Thu Sep 14 22:33:58 2006 UTC vs.
Revision 1.10 by pippijn, Sat Jan 6 14:42:28 2007 UTC

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#ifndef WIN32
208 LOG (llevError, "Experience for level %d is lower than previous level (%lld <= %lld)\n", lastlevel + 1, tmpexp, lastexp);
209#else
210 LOG (llevError, "Experience for level %d is lower than previous level (%I64d <= %I64d)\n", lastlevel + 1, tmpexp, lastexp); 208 LOG (llevError, "Experience for level %d is lower than previous level (%" PRId64 " <= %" PRId64 ")\n", lastlevel + 1, tmpexp, lastexp);
211#endif
212 exit (1); 209 exit (1);
213 } 210 }
214 lastlevel++; 211 lastlevel++;
215 if (lastlevel > settings.max_level) 212 if (lastlevel > settings.max_level)
216 { 213 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines