X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=b2194ba719e6e5127995bd8dc9453628556a1356;hb=97d7d5426c082cb302d2e31b566b29ffe9521e72;hp=64b08642029b320c93a0377ae8a56526b94eb821;hpb=e2b934c614ee1cc235e632a368576804f8c4f2b4;p=d2df-sdl.git diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 64b0864..b2194ba 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -1943,10 +1943,13 @@ begin i := 0; while (n >= 1) and (i < e_MaxInputKeys) do begin - if g_Console_MatchBind(i, down, up) then + if (i < VK_FIRSTKEY) or (i > VK_LASTKEY) then (* never show virtual keys in gui *) begin - result := i; - dec(n) + if g_Console_MatchBind(i, down, up) then + begin + result := i; + dec(n) + end; end; inc(i) end;