[nexuiz-commits] r8112 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Oct 12 06:05:41 EDT 2009
Author: fruitiex
Date: 2009-10-12 06:05:41 -0400 (Mon, 12 Oct 2009)
New Revision: 8112
Modified:
trunk/data/qcsrc/server/sv_main.qc
Log:
patch by merlijn: add eventlog message when g_start_delay ends
Modified: trunk/data/qcsrc/server/sv_main.qc
===================================================================
--- trunk/data/qcsrc/server/sv_main.qc 2009-10-12 09:02:46 UTC (rev 8111)
+++ trunk/data/qcsrc/server/sv_main.qc 2009-10-12 10:05:41 UTC (rev 8112)
@@ -128,6 +128,10 @@
Called before each frame by the server
=============
*/
+
+float game_delay;
+float game_delay_last;
+
void RuneMatchGivePoints();
float RedirectionThink();
entity SelectSpawnPoint (float anypoint);
@@ -207,6 +211,17 @@
Spawnqueue_Check();
+
+ // detect when the pre-game countdown (if any) has ended and the game has started
+ game_delay = (time < game_starttime) ? TRUE : FALSE;
+
+ if(game_delay_last == TRUE)
+ if(game_delay == FALSE)
+ if(cvar("sv_eventlog"))
+ GameLogEcho(":startdelay_ended");
+
+ game_delay_last = game_delay;
+
// if in warmup stage and limit for warmup is hit start match
if (inWarmupStage)
if ((g_warmup_limit > 0 && time >= g_warmup_limit)
More information about the nexuiz-commits
mailing list