summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2012-07-13 01:20:54 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:17 +0000
commitc78e04f4c834d88dbada2e961e65b43c7bfbf424 (patch)
tree7348a70d38933bb3e4978778d616bc02edccdc72 /src/game/g_client.c
parent22f97fece2bce63f57e0b8fca275281429705c9c (diff)
* Smarter way to check if teamoverlay info should be sent; don't send upgrade
field for aliens
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r--src/game/g_client.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 88e75d0b..96b16c3d 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -980,9 +980,13 @@ char *ClientUserinfoChanged( int clientNum, qboolean forceName )
s = Info_ValueForKey( userinfo, "teamoverlay" );
if( atoi( s ) != 0 )
- client->pers.teamInfo = qtrue;
+ {
+ // teamoverlay was enabled so we need an update
+ if( client->pers.teamInfo == 0 )
+ client->pers.teamInfo = 1;
+ }
else
- client->pers.teamInfo = qfalse;
+ client->pers.teamInfo = 0;
s = Info_ValueForKey( userinfo, "cg_unlagged" );
if( !s[0] || atoi( s ) != 0 )
@@ -1516,6 +1520,8 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles
// clear entity state values
BG_PlayerStateToEntityState( &client->ps, &ent->s, qtrue );
+
+ client->pers.infoChangeTime = level.time;
}