r2643 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun May 20 18:50:41 EDT 2007


Author: div0
Date: 2007-05-20 18:50:41 -0400 (Sun, 20 May 2007)
New Revision: 2643

Modified:
   trunk/data/qcsrc/server/g_world.qc
Log:
yes, it DID break. Server stood still when no player was there...


Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc	2007-05-20 22:43:09 UTC (rev 2642)
+++ trunk/data/qcsrc/server/g_world.qc	2007-05-20 22:50:41 UTC (rev 2643)
@@ -1448,7 +1448,13 @@
 	*/
 
 	if (gameover)	// someone else quit the game already
+	{
+		if(player_count == 0) // Nobody there? Then let's go to the next map
+			MapVote_Start();
+			// this will actually check the player count in the next frame
+			// again, but this shouldn't hurt
 		return;
+	}
 
 	timelimit = cvar("timelimit") * 60;
 	fraglimit = cvar("fraglimit");




More information about the nexuiz-commits mailing list