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
|
@ -970,7 +970,14 @@ Char_Event(int key)
|
||||||
Key_Console(key);
|
Key_Console(key);
|
||||||
break;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue