r2020 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Dec 8 18:12:09 EST 2006


Author: div0
Date: 2006-12-08 18:12:08 -0500 (Fri, 08 Dec 2006)
New Revision: 2020

Modified:
   trunk/data/qcsrc/server/g_world.qc
Log:
replaced theretically correct code by code that fteqcc does not fuck up


Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc	2006-12-08 22:28:20 UTC (rev 2019)
+++ trunk/data/qcsrc/server/g_world.qc	2006-12-08 23:12:08 UTC (rev 2020)
@@ -485,8 +485,13 @@
 float(float position, float pass) Map_Check =
 {
 	string filename;
-	if(argv(position) == GetMapname() && pass <= 1) // same map again in first pass?
-		return 0;
+	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