about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authorAlfred Eriksson <somerunce@gmail.com>2008-11-01 16:49:05 +0000
committerAlfred Eriksson <somerunce@gmail.com>2008-11-01 16:49:05 +0000
commitbb6a0504dca85badd054a3b40300c4e317662dcc (patch)
treef12450c1618642b3b528d932c9dec2163aabc86b /src/game
parenteee784f155775d4d1c05bf3726c441d2526be094 (diff)
downloadzcatch-bb6a0504dca85badd054a3b40300c4e317662dcc.tar.gz
zcatch-bb6a0504dca85badd054a3b40300c4e317662dcc.zip
editor now works correctly when console is toggled (focus problem)
Diffstat (limited to 'src/game')
-rw-r--r--src/game/client/components/console.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp
index 9efebd92..41f28a19 100644
--- a/src/game/client/components/console.cpp
+++ b/src/game/client/components/console.cpp
@@ -178,8 +178,11 @@ void CONSOLE::on_render()
 		progress = 1.0f;
 	}
 	
-	if (console_state == CONSOLE_CLOSED)
+	if (console_state == CONSOLE_CLOSED || config.cl_editor)
 		return;
+		
+	if (console_state == CONSOLE_OPEN)
+		inp_mouse_mode_absolute();
 
 	float console_height_scale;