editor now works correctly when console is toggled (focus problem)

This commit is contained in:
Alfred Eriksson 2008-11-01 16:49:05 +00:00
parent eee784f155
commit bb6a0504dc
2 changed files with 5 additions and 1 deletions

View file

@ -1614,6 +1614,7 @@ static void client_run()
if(config.cl_editor) if(config.cl_editor)
{ {
client_update(); client_update();
inp_mouse_mode_relative();
editor_update_and_render(); editor_update_and_render();
gfx_swap(); gfx_swap();
} }

View file

@ -178,9 +178,12 @@ void CONSOLE::on_render()
progress = 1.0f; progress = 1.0f;
} }
if (console_state == CONSOLE_CLOSED) if (console_state == CONSOLE_CLOSED || config.cl_editor)
return; return;
if (console_state == CONSOLE_OPEN)
inp_mouse_mode_absolute();
float console_height_scale; float console_height_scale;
if (console_state == CONSOLE_OPENING) if (console_state == CONSOLE_OPENING)