mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Fix fix for not sending Char_Event to console when not opened
turns out the if the console is opened while no game is currently running, cls.key_dest is not key_console but still key_game. Changing it to key_console in those cases blows up in interesting ways. So in Char_Event() we send events to the console in those cases.
This commit is contained in:
parent
4a762c0002
commit
703cec74e7
1 changed files with 8 additions and 1 deletions
|
@ -970,7 +970,14 @@ Char_Event(int key)
|
|||
Key_Console(key);
|
||||
break;
|
||||
|
||||
default: /* incl. key_game */
|
||||
/* Console is really open but key_dest is game anyway (not connected) */
|
||||
case key_game:
|
||||
if(cls.state == ca_disconnected || cls.state == ca_connecting)
|
||||
Key_Console(key);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue