diff --git a/src/game/g_main.pas b/src/game/g_main.pas
index c789caf7785c74a09a79e9e691f62b6277898551..ccad27b86c8e700b0b8ecaa43ff0f4d00d7a44b3 100644 (file)
--- a/src/game/g_main.pas
+++ b/src/game/g_main.pas
MapsDir: string;
ModelsDir: string;
GameWAD: string;
-
+ gSkipFirstChar: Boolean; (* hack for console/chat input *)
implementation
IK_BACKQUOTE, VK_CONSOLE: // <`/~/¨/¸>:
begin
- g_Console_Switch();
+ if not gChatShow then
+ g_Console_Switch()
end;
IK_ESCAPE, VK_ESCAPE: // <Esc>:
Msg: g_gui.TMessage;
a: Integer;
begin
+ if gSkipFirstChar then
+ begin
+ gSkipFirstChar := False;
+ Exit
+ end;
+
if (not gChatShow) and ((C = '`') or (C = '~') or (C = '¸') or (C = '¨')) then Exit;
if gConsoleShow or gChatShow then