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:
Daniel Gibson 2016-01-30 18:43:32 +01:00
parent 4a762c0002
commit 703cec74e7
1 changed files with 8 additions and 1 deletions

View File

@ -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;
}
}