diff options
| author | oy <Tom_Adams@web.de> | 2011-03-12 18:07:57 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-03-12 18:07:57 +0100 |
| commit | b834426548107af96c2568af22cbf8604f230965 (patch) | |
| tree | 893a04ec6b37d7b1d92ee66d39707463f48e847c /src/game/client/components/camera.h | |
| parent | 7b98b3ddeddd34bf0fa0c84b13d928a9dafe140c (diff) | |
| download | zcatch-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.h | 13 |
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(); |