X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=b2194ba719e6e5127995bd8dc9453628556a1356;hb=6a0ee279ed5492f6c9965de45cb9a430e0b82e39;hp=983b63b195c285158b332ed9e99b910309aa55c5;hpb=89165e554041bc31dc609a23991bcb277a7e6556;p=d2df-sdl.git diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 983b63b..b2194ba 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -1084,6 +1084,7 @@ begin AddCommand('g_throw_flag', GameCVars); AddCommand('g_bot_vsmonsters', GameCVars); AddCommand('g_bot_vsplayers', GameCVars); + AddCommand('g_max_bots', GameCVars); // intentionally not whitelisted AddCommand('g_scorelimit', GameCVars); AddCommand('g_timelimit', GameCVars); AddCommand('g_maxlives', GameCVars); @@ -1110,6 +1111,7 @@ begin AddCommand('chat', GameCommands); AddCommand('teamchat', GameCommands); AddCommand('announce', GameCommands); + AddCommand('an', GameCommands); AddCommand('game', GameCommands); AddCommand('host', GameCommands); AddCommand('map', GameCommands); @@ -1941,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;