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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user