From: TerminalHash Date: Thu, 31 Aug 2023 21:50:24 +0000 (+0300) Subject: game: rename "rulez-random" commands X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=c80103f4512aa43ff38aa01395944f277266e359;p=d2df-sdl.git game: rename "rulez-random" commands --- diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 6ff8ec3..febe7e9 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -1117,8 +1117,8 @@ begin AddCommand('g_warmup_time', GameCVars); AddCommand('g_spawn_invul', GameCVars); AddCommand('g_item_respawn_time', GameCVars); - AddCommand('g_rulez_randomize_respawn', GameCVars); - AddCommand('g_rulez_time_multiplier', GameCVars); + AddCommand('g_powerup_randomize_respawn', GameCVars); + AddCommand('g_powerup_time_multiplier', GameCVars); AddCommand('sv_intertime', GameCVars); AddCommand('sv_name', NetServerCVars); @@ -1248,8 +1248,8 @@ begin WhitelistCommand('g_warmup_time'); WhitelistCommand('g_spawn_invul'); WhitelistCommand('g_item_respawn_time'); - WhitelistCommand('g_rulez_randomize_respawn'); - WhitelistCommand('g_rulez_time_multiplier'); + WhitelistCommand('g_powerup_randomize_respawn'); + WhitelistCommand('g_powerup_time_multiplier'); g_Console_ResetBinds; g_Console_ReadConfig(gConfigScript); @@ -2238,14 +2238,14 @@ begin WriteLn(f, 'g_timelimit ', gsTimeLimit); WriteLn(f, 'g_maxlives ', gsMaxLives); WriteLn(f, 'g_item_respawn_time ', gsItemRespawnTime); - WriteLn(f, 'g_rulez_time_multiplier ', gsRulezTimeMultiplier); + WriteLn(f, 'g_powerup_time_multiplier ', gsRulezTimeMultiplier); WriteLn(f, 'g_spawn_invul ', gsSpawnInvul); WriteLn(f, 'g_warmup_time ', gsWarmupTime); WriteFlag('g_friendlyfire ', GAME_OPTION_TEAMDAMAGE); WriteFlag('g_friendly_hit_trace ', GAME_OPTION_TEAMHITTRACE); WriteFlag('g_friendly_hit_projectile ', GAME_OPTION_TEAMHITPROJECTILE); - WriteFlag('g_rulez_randomize_respawn ', GAME_OPTION_RULEZRANDOM); + WriteFlag('g_powerup_randomize_respawn ', GAME_OPTION_RULEZRANDOM); WriteFlag('g_allow_exit ', GAME_OPTION_ALLOWEXIT); WriteFlag('g_allow_monsters ', GAME_OPTION_MONSTERS); WriteFlag('g_allow_dropflag ', GAME_OPTION_ALLOWDROPFLAG); diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 303d036..87a928f 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -5614,9 +5614,9 @@ begin begin ParseGameFlag(GAME_OPTION_TEAMHITPROJECTILE, I_MSG_FRIENDLY_PROJECT_TRACE_OFF, I_MSG_FRIENDLY_PROJECT_TRACE_ON); end - else if cmd = 'g_rulez_randomize_respawn' then + else if cmd = 'g_powerup_randomize_respawn' then begin - ParseGameFlag(GAME_OPTION_RULEZRANDOM, I_MSG_RULEZ_RANDOM_ON, I_MSG_RULEZ_RANDOM_OFF); + ParseGameFlag(GAME_OPTION_RULEZRANDOM, I_MSG_RULEZ_RANDOM_OFF, I_MSG_RULEZ_RANDOM_ON); end else if cmd = 'g_weaponstay' then begin @@ -5714,7 +5714,7 @@ begin g_Console_Add(Format('%s %d', [cmd, Integer(gsItemRespawnTime)])); if g_Game_IsServer then g_Console_Add(_lc[I_MSG_ONMAPCHANGE]); end - else if cmd = 'g_rulez_time_multiplier' then + else if cmd = 'g_powerup_time_multiplier' then begin if Length(P) > 1 then begin diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index ed4e25d..39da020 100644 --- a/src/game/g_menu.pas +++ b/src/game/g_menu.pas @@ -2415,12 +2415,12 @@ begin with AddSwitch(_lc[I_MENU_ENABLE_RULEZ_RANDOM]) do begin Name := 'swRulezRandom'; - AddItem(_lc[I_MENU_NO]); AddItem(_lc[I_MENU_YES]); + AddItem(_lc[I_MENU_NO]); if LongBool(gsGameFlags and GAME_OPTION_RULEZRANDOM) then - ItemIndex := 0 + ItemIndex := 1 else - ItemIndex := 1; + ItemIndex := 0; end; with AddSwitch(_lc[I_MENU_BOTS_VS]) do begin @@ -2682,8 +2682,8 @@ begin with AddSwitch(_lc[I_MENU_ENABLE_RULEZ_RANDOM]) do begin Name := 'swRulezRandom'; - AddItem(_lc[I_MENU_NO]); AddItem(_lc[I_MENU_YES]); + AddItem(_lc[I_MENU_NO]); if LongBool(gsGameFlags and GAME_OPTION_RULEZRANDOM) then ItemIndex := 0 else