X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=4866ea19371efc68ff3588db5eefb35ebcfb008a;hb=efadc1f305ab09388e8baf396a8dda66b69b74a9;hp=33bfcf7dafedefaef8e4b74a39c8d07e746f151d;hpb=32feca26531633f6175ac01859db60016a9d0455;p=d2df-sdl.git diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 33bfcf7..4866ea1 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -719,13 +719,15 @@ begin end; 'togglechat': begin - g_Console_Chat_Switch; + if not gConsoleShow and (g_ActiveWindow = nil) then + g_Console_Chat_Switch; gSkipFirstChar := not g_Console_Interactive() end; 'toggleteamchat': if gGameSettings.GameMode in [GM_TDM, GM_CTF] then begin - g_Console_Chat_Switch(True); + if not gConsoleShow and (g_ActiveWindow = nil) then + g_Console_Chat_Switch(True); gSkipFirstChar := not g_Console_Interactive() end; end @@ -1730,8 +1732,11 @@ begin if (not g_GUIGrabInput) and (key >= 0) and (key < e_MaxInputKeys) and ((gInputBinds[key].down <> nil) or (gInputBinds[key].up <> nil)) then begin if down then - for i := 0 to High(gInputBinds[key].down) do - g_Console_Process(gInputBinds[key].down[i], True) + begin + if not gChatShow then + for i := 0 to High(gInputBinds[key].down) do + g_Console_Process(gInputBinds[key].down[i], True); + end else for i := 0 to High(gInputBinds[key].up) do g_Console_Process(gInputBinds[key].up[i], True)