r2021 - branches/nexuiz-2.0/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Dec 9 04:15:14 EST 2006
Author: div0
Date: 2006-12-09 04:15:14 -0500 (Sat, 09 Dec 2006)
New Revision: 2021
Modified:
branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
Log:
prevent same map from appearing again even when size restrictions are in place
Modified: branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/g_world.qc 2006-12-08 23:12:08 UTC (rev 2020)
+++ branches/nexuiz-2.0/data/qcsrc/server/g_world.qc 2006-12-09 09:15:14 UTC (rev 2021)
@@ -447,6 +447,13 @@
float(float position, float pass) Map_Check =
{
string filename;
+ string map_current;
+ string map_next;
+ map_next = argv(position);
+ map_current = GetMapname();
+ if(pass <= 1)
+ if(map_next == map_current) // same map again in first pass?
+ return 0;
filename = Map_Filename(position);
if(TryFile(filename))
{
More information about the nexuiz-commits
mailing list