about summary refs log tree commit diff
path: root/src/game/client/gameclient.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-03-12 18:07:57 +0100
committeroy <Tom_Adams@web.de>2011-03-12 18:07:57 +0100
commitb834426548107af96c2568af22cbf8604f230965 (patch)
tree893a04ec6b37d7b1d92ee66d39707463f48e847c /src/game/client/gameclient.h
parent7b98b3ddeddd34bf0fa0c84b13d928a9dafe140c (diff)
downloadzcatch-b834426548107af96c2568af22cbf8604f230965.tar.gz
zcatch-b834426548107af96c2568af22cbf8604f230965.zip
fixed several problems with spectator view in game and demo player. Closes #83
Diffstat (limited to 'src/game/client/gameclient.h')
-rw-r--r--src/game/client/gameclient.h13
1 files changed, 11 insertions, 2 deletions
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