X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=5822952a5e8383595a747ebfd831ac19bdc4e06c;hp=d1246ba0c7dabdc027035501fe4fee5bd9bfc6a7;hb=51998d817120cd3833df7bae3d355642fd4abde5;hpb=06ce403977f0da3911c62eed46414ad03afa9111 diff --git a/src/game/g_game.pas b/src/game/g_game.pas index d1246ba..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