r1833 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Aug 20 07:13:16 EDT 2006
Author: div0
Date: 2006-08-20 07:13:16 -0400 (Sun, 20 Aug 2006)
New Revision: 1833
Modified:
trunk/data/qcsrc/server/g_world.qc
Log:
just in case... bound(0, x, -1) is BAD
Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc 2006-08-20 11:11:50 UTC (rev 1832)
+++ trunk/data/qcsrc/server/g_world.qc 2006-08-20 11:13:16 UTC (rev 1833)
@@ -545,7 +545,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