From 2f57c630d9545543d340f9dbcc516cc64c260f0f Mon Sep 17 00:00:00 2001
From: TerminalHash <lyashuk.voxx@gmail.com>
Date: Wed, 13 Sep 2023 01:03:46 +0300
Subject: [PATCH] game: remove applying option for rulez random game: improve
 log writing for items randomization debug

---
 src/game/g_items.pas   | 10 +++++-----
 src/game/g_options.pas |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/game/g_items.pas b/src/game/g_items.pas
index 4337fff..4f0bd80 100644
--- a/src/game/g_items.pas
+++ b/src/game/g_items.pas
@@ -758,7 +758,7 @@ begin
                            ITEM_INVIS, ITEM_MEDKIT_BLACK, ITEM_JETPACK, ITEM_SUIT] then
       begin
         ggItems[ID].RespawnTime := Max(1, (gGameSettings.RulezRespawnTime + RandomRange(-gGameSettings.RulezRespawnRandom, gGameSettings.RulezRespawnRandom + 1)) * 36);
-        //e_logwritefln ('Randomized rulez time: %s', [ggItems[ID].RespawnTime]);
+        //e_logwritefln ('Randomized rulez %s time: %s', [ggItems[ID].ItemType, ggItems[ID].RespawnTime]);
       end;
     end;
 
@@ -777,7 +777,7 @@ begin
                                   ITEM_WEAPON_FLAMETHROWER] then
       begin
         ggItems[ID].RespawnTime := Max(1, (gGameSettings.ItemRespawnTime + RandomRange(-gGameSettings.ItemRespawnRandom, gGameSettings.ItemRespawnRandom + 1)) * 36);
-        //e_logwritefln ('Randomized item time: %s', [ggItems[ID].RespawnTime]);
+        //e_logwritefln ('Randomized item %s time: %s', [ggItems[ID].ItemType, ggItems[ID].RespawnTime]);
       end;
     end;
 
@@ -789,7 +789,7 @@ begin
                                   ITEM_AMMO_BACKPACK] then
       begin
         ggItems[ID].RespawnTime := Max(1, (gGameSettings.ItemRespawnTime + RandomRange(-gGameSettings.ItemRespawnRandom, gGameSettings.ItemRespawnRandom + 1)) * 36);
-        //e_logwritefln ('Randomized help item time: %s', [ggItems[ID].RespawnTime]);
+        //e_logwritefln ('Randomized help item %s time: %s', [ggItems[ID].ItemType, ggItems[ID].RespawnTime]);
       end;
     end;
 
@@ -801,7 +801,7 @@ begin
                                   ITEM_AMMO_CELL, ITEM_AMMO_CELL_BIG, ITEM_AMMO_FUELCAN] then
       begin
         ggItems[ID].RespawnTime := Max(1, (gGameSettings.ItemRespawnTime + RandomRange(-gGameSettings.ItemRespawnRandom, gGameSettings.ItemRespawnRandom + 1)) * 36);
-        //e_logwritefln ('Randomized ammo time: %s', [ggItems[ID].RespawnTime]);
+        //e_logwritefln ('Randomized ammo %s time: %s', [ggItems[ID].ItemType, ggItems[ID].RespawnTime]);
       end;
     end;
 
@@ -813,7 +813,7 @@ begin
                                   ITEM_WEAPON_BFG, ITEM_WEAPON_SUPERPULEMET, ITEM_WEAPON_FLAMETHROWER] then
       begin
         ggItems[ID].RespawnTime := Max(1, (gGameSettings.ItemRespawnTime + RandomRange(-gGameSettings.ItemRespawnRandom, gGameSettings.ItemRespawnRandom + 1)) * 36);
-        //e_logwritefln ('Randomized weapons time: %s', [ggItems[ID].RespawnTime]);
+        //e_logwritefln ('Randomized weapon %s time: %s', [ggItems[ID].ItemType, ggItems[ID].RespawnTime]);
       end;
     end;
   end;
diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index 13033d2..93e9199 100644
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
@@ -276,7 +276,7 @@ begin
   gsGameFlags := GAME_OPTION_ALLOWEXIT or GAME_OPTION_DMKEYS or
     GAME_OPTION_BOTVSPLAYER or GAME_OPTION_BOTVSMONSTER or
     GAME_OPTION_TEAMHITTRACE or GAME_OPTION_TEAMHITPROJECTILE or
-    GAME_OPTION_ALLOWDROPFLAG or GAME_OPTION_RULEZRANDOM;
+    GAME_OPTION_ALLOWDROPFLAG;
   gsPlayers := 1;
 
   if not gGameOn then
-- 
2.29.2