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.
This commit is contained in:
RoosterDragon
2023-11-04 16:16:17 +00:00
committed by Gustas
parent 8e80117eb8
commit e83e580f23

View File

@@ -143,13 +143,9 @@ namespace OpenRA.Mods.Common.Traits
if (enableAll)
{
self.Owner.Shroud.ExploreAll();
var amount = order.ExtraData != 0 ? (int)order.ExtraData : info.Cash;
self.Trait<PlayerResources>().ChangeCash(amount);
}
else
self.Owner.Shroud.ResetExploration();
self.Owner.Shroud.Disabled = DisableShroud;
if (self.World.LocalPlayer == self.Owner)