r1966 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Dec 3 05:17:29 EST 2006


Author: div0
Date: 2006-12-03 05:17:29 -0500 (Sun, 03 Dec 2006)
New Revision: 1966

Modified:
   trunk/data/qcsrc/server/g_world.qc
Log:
fixed map list position off-by-one


Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc	2006-12-03 10:12:00 UTC (rev 1965)
+++ trunk/data/qcsrc/server/g_world.qc	2006-12-03 10:17:29 UTC (rev 1966)
@@ -606,9 +606,9 @@
 		cvar_set("g_maplist", temp = cvar_string("g_maplist_defaultlist"));
 		Map_Count = tokenize(temp);
 	}
-	Map_Current = bound(0, GetMaplistPosition(), Map_Count);
 	if(Map_Count == 0)
 		error("empty maplist, cannot select a new map");
+	Map_Current = bound(0, GetMaplistPosition(), Map_Count - 1);
 }
 
 void() GotoNextMap =




More information about the nexuiz-commits mailing list