X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=b2194ba719e6e5127995bd8dc9453628556a1356;hb=83e321dee047413f760e8372666e155f30f89bb8;hp=87a1fba23b9c5120f144dd618f41080078dd80ad;hpb=3bc93c7ecd534237343aaa3b83dca053c53b9bc5;p=d2df-sdl.git diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 87a1fba..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); @@ -1109,6 +1110,8 @@ begin AddCommand('bot_removeall', GameCommands); AddCommand('chat', GameCommands); AddCommand('teamchat', GameCommands); + AddCommand('announce', GameCommands); + AddCommand('an', GameCommands); AddCommand('game', GameCommands); AddCommand('host', GameCommands); AddCommand('map', GameCommands); @@ -1940,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;