r4738 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Oct 13 07:44:14 EDT 2008
Author: div0
Date: 2008-10-13 07:44:13 -0400 (Mon, 13 Oct 2008)
New Revision: 4738
Modified:
trunk/data/qcsrc/client/View.qc
Log:
detect changes on teamplay cvar (in case that gets received after the scores info)
Modified: trunk/data/qcsrc/client/View.qc
===================================================================
--- trunk/data/qcsrc/client/View.qc 2008-10-13 09:05:38 UTC (rev 4737)
+++ trunk/data/qcsrc/client/View.qc 2008-10-13 11:44:13 UTC (rev 4738)
@@ -193,6 +193,7 @@
{
entity e;
float fov;
+ float f;
dprint_load();
WaypointSprite_Load();
@@ -256,7 +257,12 @@
sbar_alpha_fg = cvar("sbar_alpha_fg" );
sbar_hudselector = cvar("sbar_hudselector");
activeweapon = getstati(STAT_SWITCHWEAPON);
- teamplay = cvar("teamplay");
+ f = cvar("teamplay");
+ if(f != teamplay)
+ {
+ teamplay = f;
+ Sbar_InitScores();
+ }
if(last_weapon != activeweapon) {
weapontime = time;
More information about the nexuiz-commits
mailing list