From c78e04f4c834d88dbada2e961e65b43c7bfbf424 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Fri, 13 Jul 2012 01:20:54 +0000 Subject: * Smarter way to check if teamoverlay info should be sent; don't send upgrade field for aliens --- src/game/g_local.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/game/g_local.h') 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 -- cgit