diff --git a/OpenRA.Game/Player.cs b/OpenRA.Game/Player.cs index bb09eac700..f324b495ee 100644 --- a/OpenRA.Game/Player.cs +++ b/OpenRA.Game/Player.cs @@ -165,7 +165,7 @@ namespace OpenRA return CanViewActor(a); } - public bool HasFogVisibility { get { return fogVisibilities.Any(f => f.HasFogVisibility(this)); } } + public bool HasFogVisibility { get { return fogVisibilities.Any(f => f.HasFogVisibility()); } } #region Scripting interface diff --git a/OpenRA.Game/Traits/TraitsInterfaces.cs b/OpenRA.Game/Traits/TraitsInterfaces.cs index 8312935b66..de5252edbf 100644 --- a/OpenRA.Game/Traits/TraitsInterfaces.cs +++ b/OpenRA.Game/Traits/TraitsInterfaces.cs @@ -193,7 +193,7 @@ namespace OpenRA.Traits public interface IFogVisibilityModifier { bool IsVisible(Actor actor); - bool HasFogVisibility(Player byPlayer); + bool HasFogVisibility(); } public interface IRadarColorModifier { Color RadarColorOverride(Actor self); } diff --git a/OpenRA.Mods.RA/Traits/SupportPowers/GpsPower.cs b/OpenRA.Mods.RA/Traits/SupportPowers/GpsPower.cs index 202414ef48..16ca4eb1ea 100644 --- a/OpenRA.Mods.RA/Traits/SupportPowers/GpsPower.cs +++ b/OpenRA.Mods.RA/Traits/SupportPowers/GpsPower.cs @@ -76,7 +76,7 @@ namespace OpenRA.Mods.RA.Traits Owner.Shroud.ExploreAll(Owner.World); } - public bool HasFogVisibility(Player byPlayer) + public bool HasFogVisibility() { return Granted || GrantedAllies; }