about summary refs log tree commit diff
path: root/src/game/client/components/camera.cpp
diff options
context:
space:
mode:
authorDominik Geyer <dominik.geyer@gmx.de>2008-09-09 15:50:41 +0000
committerDominik Geyer <dominik.geyer@gmx.de>2008-09-09 15:50:41 +0000
commit51a9d23dae18ec7a678bdf4215f48d863a720fdc (patch)
treea29a599405c5ef1eab9631dc736837b8048e1282 /src/game/client/components/camera.cpp
parent3b086d616a9090f714c90c7985f10c5dc4bd5733 (diff)
downloadzcatch-51a9d23dae18ec7a678bdf4215f48d863a720fdc.tar.gz
zcatch-51a9d23dae18ec7a678bdf4215f48d863a720fdc.zip
fixed spectator mode freeview
Diffstat (limited to 'src/game/client/components/camera.cpp')
-rw-r--r--src/game/client/components/camera.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/client/components/camera.cpp b/src/game/client/components/camera.cpp
index a9727ccf..ba9aed46 100644
--- a/src/game/client/components/camera.cpp
+++ b/src/game/client/components/camera.cpp
@@ -20,9 +20,7 @@ void CAMERA::on_render()
 	//vec2 center;
 	zoom = 1.0f;
 	
-	bool spectate = false;
-
-	if(spectate)
+	if(gameclient.snap.spectate)
 		center = gameclient.controls->mouse_pos;
 	else
 	{