summaryrefslogtreecommitdiff
path: root/src/game/g_local.h
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_local.h
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_local.h')
-rw-r--r--src/game/g_local.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h
index 81700620..05fea6df 100644
--- a/src/game/g_local.h
+++ b/src/game/g_local.h
@@ -310,7 +310,7 @@ typedef struct
char netname[ MAX_NAME_LENGTH ];
int enterTime; // level.time the client entered the game
int location; // player locations
- qboolean teamInfo; // send team overlay updates?
+ int teamInfo; // level.time of team overlay update (disabled = 0)
float flySpeed; // for spectator/noclip moves
qboolean disableBlueprintErrors; // should the buildable blueprint never be hidden from the players?
@@ -340,9 +340,10 @@ typedef struct
char guid[ 33 ];
addr_t ip;
char voice[ MAX_VOICE_NAME_LEN ];
- qboolean useUnlagged;
- // keep track of other players' info for tinfo
- char cinfo[ MAX_CLIENTS ][ 16 ];
+ qboolean useUnlagged;
+
+ // level.time when teamoverlay info changed so we know to tell other players
+ int infoChangeTime;
} clientPersistant_t;
#define MAX_UNLAGGED_MARKERS 10