Replace gConsoleOpen with function

This commit is contained in:
Ted John committed 2018-03-22 20:16:58 +00:00
1 parent 5188c3612a
commit ec9e812ea7
5 files changed
+42 -33

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@ void TextComposition::HandleMessage(const SDL_Event * e)
if (_session.Buffer != nullptr)
{
// HACK ` will close console, so don't input any text
if (e->text.text[0] == '`' && gConsoleOpen) {
if (e->text.text[0] == '`' && console_is_open()) {
break;
}