mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix some operation order issues (might fix the stuck key issue)
This commit is contained in:
parent
4cc39a07bc
commit
dd08f4ff58
1 changed files with 2 additions and 2 deletions
|
@ -1127,10 +1127,10 @@ CL_SetState (cactive_t state)
|
||||||
if (old_state != state) {
|
if (old_state != state) {
|
||||||
if (old_state == ca_active) {
|
if (old_state == ca_active) {
|
||||||
// leaving active state
|
// leaving active state
|
||||||
|
IN_ClearStates ();
|
||||||
r_active = false;
|
r_active = false;
|
||||||
game_target = IMT_CONSOLE;
|
game_target = IMT_CONSOLE;
|
||||||
key_dest = key_console;
|
key_dest = key_console;
|
||||||
IN_ClearStates ();
|
|
||||||
if (con_module)
|
if (con_module)
|
||||||
con_module->data->console->force_commandline = 1;
|
con_module->data->console->force_commandline = 1;
|
||||||
if (con_module)
|
if (con_module)
|
||||||
|
@ -1142,10 +1142,10 @@ CL_SetState (cactive_t state)
|
||||||
CL_Record (0);
|
CL_Record (0);
|
||||||
} else if (state == ca_active) {
|
} else if (state == ca_active) {
|
||||||
// entering active state
|
// entering active state
|
||||||
|
IN_ClearStates ();
|
||||||
r_active = true;
|
r_active = true;
|
||||||
game_target = IMT_0;
|
game_target = IMT_0;
|
||||||
key_dest = key_game;
|
key_dest = key_game;
|
||||||
IN_ClearStates ();
|
|
||||||
|
|
||||||
// Auto demo recorder stops here
|
// Auto demo recorder stops here
|
||||||
if(cl_autorecord->int_val && cls.demorecording)
|
if(cl_autorecord->int_val && cls.demorecording)
|
||||||
|
|
Loading…
Reference in a new issue