r1830 - branches/nexuiz-2.0/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Aug 20 07:00:32 EDT 2006
Author: div0
Date: 2006-08-20 07:00:32 -0400 (Sun, 20 Aug 2006)
New Revision: 1830
Modified:
branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
Log:
fixed out-of-range maplist positions causing runaway loops
Modified: branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/g_world.qc 2006-08-20 10:56:27 UTC (rev 1829)
+++ branches/nexuiz-2.0/data/qcsrc/server/g_world.qc 2006-08-20 11:00:32 UTC (rev 1830)
@@ -516,8 +516,8 @@
}
temp = strzone(temp);
dprint("g_maplist is ", temp, "\n");
- lCurrent = max(0, GetMaplistPosition());
lSize = tokenize( temp );
+ lCurrent = bound(0, floor(GetMaplistPosition()), lSize - 1);
lOldCurrent = lCurrent;
dprint(ftos(lOldCurrent), " / ", ftos(lSize), " (start)\n");
More information about the nexuiz-commits
mailing list