r3994 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Aug 1 03:44:28 EDT 2008
Author: div0
Date: 2008-08-01 03:44:26 -0400 (Fri, 01 Aug 2008)
New Revision: 3994
Modified:
trunk/data/qcsrc/server/scores.qc
Log:
can't use MSG_ALL here, as that may come too early on level changes (that SUCKS)
Modified: trunk/data/qcsrc/server/scores.qc
===================================================================
--- trunk/data/qcsrc/server/scores.qc 2008-08-01 07:07:13 UTC (rev 3993)
+++ trunk/data/qcsrc/server/scores.qc 2008-08-01 07:44:26 UTC (rev 3994)
@@ -124,6 +124,8 @@
void ScoreInfo_Write(float targ)
{
float i;
+ if not(scores_initialized)
+ return;
WriteByte(targ, SVC_TEMPENTITY);
WriteByte(targ, TE_CSQC_SCORESINFO);
WriteByte(targ, game);
@@ -141,6 +143,7 @@
void ScoreInfo_Init(float teams)
{
+ entity pl;
scores_initialized = 1;
if(teams >= 1)
TeamScore_Spawn(COLOR_TEAM1, "Red");
@@ -150,7 +153,8 @@
TeamScore_Spawn(COLOR_TEAM3, "Yellow");
if(teams >= 4)
TeamScore_Spawn(COLOR_TEAM4, "Pink");
- ScoreInfo_Write(MSG_ALL);
+ FOR_EACH_REALCLIENT(msg_entity) // cannot use MSG_ALL here, as that may come too early on level changes (that SUCKS)
+ ScoreInfo_Write(MSG_ONE);
}
/*
More information about the nexuiz-commits
mailing list