From bb6a0504dca85badd054a3b40300c4e317662dcc Mon Sep 17 00:00:00 2001 From: Alfred Eriksson Date: Sat, 1 Nov 2008 16:49:05 +0000 Subject: editor now works correctly when console is toggled (focus problem) --- src/game/client/components/console.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game/client/components/console.cpp') 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; -- cgit 1.4.1