X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=5822952a5e8383595a747ebfd831ac19bdc4e06c;hp=6049b9062b623b4ecbee540b685c17f6aca9e1c2;hb=51998d817120cd3833df7bae3d355642fd4abde5;hpb=89165e554041bc31dc609a23991bcb277a7e6556 diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 6049b90..5822952 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -350,6 +350,7 @@ var gWeaponAction: Array [0..1, WP_FACT..WP_LACT] of Boolean; // [player, weapon_action] gSelectWeapon: Array [0..1, WP_FIRST..WP_LAST] of Boolean; // [player, weapon] gInterReadyCount: Integer = 0; + gMaxBots: Integer = 127; g_dbg_ignore_bounds: Boolean = false; r_smallmap_h: Integer = 0; // 0: left; 1: center; 2: right @@ -5807,6 +5808,12 @@ begin (gsTimeLimit div 60) mod 60, gsTimeLimit mod 60])); end + else if cmd = 'g_max_bots' then + begin + if Length(P) > 1 then + gMaxBots := nclamp(StrToIntDef(P[1], gMaxBots), 0, 127); + g_Console_Add('g_max_bots = ' + IntToStr(gMaxBots)); + end else if cmd = 'g_maxlives' then begin if Length(P) > 1 then @@ -6976,7 +6983,7 @@ begin end else g_Console_Add(_lc[I_MSG_GM_UNAVAIL]); end - else if cmd = 'announce' then + else if (cmd = 'an') or (cmd = 'announce') then begin if g_Game_IsNet then begin