From b834426548107af96c2568af22cbf8604f230965 Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 12 Mar 2011 18:07:57 +0100 Subject: fixed several problems with spectator view in game and demo player. Closes #83 --- src/game/client/gameclient.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/game/client/gameclient.h') diff --git a/src/game/client/gameclient.h b/src/game/client/gameclient.h index 5e8b9391..831cae24 100644 --- a/src/game/client/gameclient.h +++ b/src/game/client/gameclient.h @@ -97,6 +97,8 @@ public: }; int m_ServerMode; + int m_DemoSpecID; + vec2 m_LocalCharacterPos; // predicted players @@ -122,8 +124,15 @@ public: int m_LocalClientID; int m_NumPlayers; int m_aTeamSize[2]; - bool m_Spectate; - vec2 m_SpectatorPos; + + // spectate data + struct CSpectateInfo + { + bool m_Active; + int m_SpectatorID; + bool m_UsePosition; + vec2 m_Position; + } m_SpecInfo; // struct CCharacterInfo -- cgit 1.4.1