Skip to content

Commit

Permalink
Don't clear/reset shroud when using the /all debug command.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RoosterDragon authored and PunkPun committed Nov 4, 2023
1 parent 8e80117 commit e83e580
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions OpenRA.Mods.Common/Traits/Player/DeveloperMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PlayerResources>().ChangeCash(amount);
}
else
self.Owner.Shroud.ResetExploration();

self.Owner.Shroud.Disabled = DisableShroud;
if (self.World.LocalPlayer == self.Owner)
Expand Down

0 comments on commit e83e580

Please sign in to comment.