X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_main.pas;h=ccad27b86c8e700b0b8ecaa43ff0f4d00d7a44b3;hp=c789caf7785c74a09a79e9e691f62b6277898551;hb=7ab0e3623e342566a036b71b847b629e26ee56e1;hpb=935ed9a1e12d78a0c4ef4a9e9f9bf858fd2c2b56 diff --git a/src/game/g_main.pas b/src/game/g_main.pas index c789caf..ccad27b 100644 --- a/src/game/g_main.pas +++ b/src/game/g_main.pas @@ -32,7 +32,7 @@ var MapsDir: string; ModelsDir: string; GameWAD: string; - + gSkipFirstChar: Boolean; (* hack for console/chat input *) implementation @@ -496,7 +496,8 @@ begin IK_BACKQUOTE, VK_CONSOLE: // <`/~/¨/¸>: begin - g_Console_Switch(); + if not gChatShow then + g_Console_Switch() end; IK_ESCAPE, VK_ESCAPE: // : @@ -588,6 +589,12 @@ var 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