r1907 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Nov 6 06:59:03 EST 2006
Author: div0
Date: 2006-11-06 06:59:03 -0500 (Mon, 06 Nov 2006)
New Revision: 1907
Modified:
trunk/data/qcsrc/server/g_world.qc
Log:
bail out if there are multiple worldspawns (to prevent multiple game start logging and other inconsistencies)
Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc 2006-11-05 18:37:33 UTC (rev 1906)
+++ trunk/data/qcsrc/server/g_world.qc 2006-11-06 11:59:03 UTC (rev 1907)
@@ -62,9 +62,12 @@
}
}
+float world_already_spawned;
void worldspawn (void)
{
-
+ if(world_already_spawned)
+ error("world already spawned - you may have EXACTLY ONE worldspawn!");
+ world_already_spawned = TRUE;
// Precache all player models
// Workaround for "invisible players"
precache_model("models/player/carni.zym");
More information about the nexuiz-commits
mailing list