mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
editor now works correctly when console is toggled (focus problem)
This commit is contained in:
parent
eee784f155
commit
bb6a0504dc
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -178,8 +178,11 @@ 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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue