From e83e580f2349f3dfb0a4cdc313e3b84363a7388e Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Sat, 4 Nov 2023 16:16:17 +0000 Subject: [PATCH] Don't clear/reset shroud when using the `/all` debug command. Disabling the shroud is sufficient to allow seeing the map. This fixes a game with the "Explored Map" option enabled. Previously using the `/all` command twice to toggle it on and off again would also reset the shroud, causing the map to no longer be explored. Now, using it twice will cause the map to remain explored, as intended when the "Explored Map" option is enabled. --- OpenRA.Mods.Common/Traits/Player/DeveloperMode.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Player/DeveloperMode.cs b/OpenRA.Mods.Common/Traits/Player/DeveloperMode.cs index 347f3da870f2..3e6580b496f4 100644 --- a/OpenRA.Mods.Common/Traits/Player/DeveloperMode.cs +++ b/OpenRA.Mods.Common/Traits/Player/DeveloperMode.cs @@ -143,13 +143,9 @@ public void ResolveOrder(Actor self, Order order) if (enableAll) { - self.Owner.Shroud.ExploreAll(); - var amount = order.ExtraData != 0 ? (int)order.ExtraData : info.Cash; self.Trait().ChangeCash(amount); } - else - self.Owner.Shroud.ResetExploration(); self.Owner.Shroud.Disabled = DisableShroud; if (self.World.LocalPlayer == self.Owner)