about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-18 01:54:16 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-18 01:54:16 +0000
commit36c9bc5bb9746ca62c97f563ca03765595a360ad (patch)
tree964d111156498e0b77fd194bc70bf9b314c01296 /src/game
parent3fb0a02954fd427f760afe29ef71591dba542454 (diff)
downloadzcatch-36c9bc5bb9746ca62c97f563ca03765595a360ad.tar.gz
zcatch-36c9bc5bb9746ca62c97f563ca03765595a360ad.zip
fixed camera jerk when using the emoticon selector
Diffstat (limited to 'src/game')
-rw-r--r--src/game/client/gc_client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/client/gc_client.cpp b/src/game/client/gc_client.cpp
index ed26427d..b7b39272 100644
--- a/src/game/client/gc_client.cpp
+++ b/src/game/client/gc_client.cpp
@@ -850,7 +850,9 @@ void render_game()
 	float deadzone = config.cl_mouse_deadzone;
 	float follow_factor = config.cl_mouse_followfactor/100.0f;
 	float mouse_max = min(camera_max_distance/follow_factor + deadzone, (float)config.cl_mouse_max_distance);
-	vec2 camera_offset(0, 0);
+	
+	// TODO: static works, but kinda ugly, it's so that the camera doesn't jerkoff when we wanna select emote
+	static vec2 camera_offset(0, 0);
 
 	// fetch new input
 	if(!menu_active && !emoticon_selector_active)