about summary refs log tree commit diff
path: root/src/game/client/components/camera.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/components/camera.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/components/camera.h')
-rw-r--r--src/game/client/components/camera.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/game/client/components/camera.h b/src/game/client/components/camera.h
index ba433285..75725d56 100644
--- a/src/game/client/components/camera.h
+++ b/src/game/client/components/camera.h
@@ -6,11 +6,20 @@
 #include <game/client/component.h>
 
 class CCamera : public CComponent
-{	
+{
+	enum
+	{
+		CAMTYPE_UNDEFINED=-1,
+		CAMTYPE_SPEC,
+		CAMTYPE_PLAYER,
+	};
+
+	int m_CamType;
+	vec2 m_PrevCenter;
+
 public:
 	vec2 m_Center;
 	float m_Zoom;
-	bool m_WasSpectator;
 
 	CCamera();
 	virtual void OnRender();