r1832 - branches/nexuiz-2.0/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Aug 20 07:11:50 EDT 2006
Author: div0
Date: 2006-08-20 07:11:50 -0400 (Sun, 20 Aug 2006)
New Revision: 1832
Modified:
branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
Log:
just in case... don't call bound(0, x, -1)
Modified: branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/g_world.qc 2006-08-20 11:01:03 UTC (rev 1831)
+++ branches/nexuiz-2.0/data/qcsrc/server/g_world.qc 2006-08-20 11:11:50 UTC (rev 1832)
@@ -517,7 +517,8 @@
temp = strzone(temp);
dprint("g_maplist is ", temp, "\n");
lSize = tokenize( temp );
- lCurrent = bound(0, floor(GetMaplistPosition()), lSize - 1);
+ lCurrent = GetMaplistPosition();
+ lCurrent = max(0, min(floor(lCurrent), lSize - 1));
lOldCurrent = lCurrent;
dprint(ftos(lOldCurrent), " / ", ftos(lSize), " (start)\n");
More information about the nexuiz-commits
mailing list