From 4060a5c711ca5e93f492ac85dc109d8654b4b79f Mon Sep 17 00:00:00 2001 From: Fincer Date: Sat, 3 Jun 2017 13:53:50 +0300 Subject: [PATCH] Remove RA2 Overlay hotfix (Windows) --- .../hotfix-ra2-withexitoverlay-revert.patch | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 data/hotfixes/windows/hotfix-ra2-withexitoverlay-revert.patch diff --git a/data/hotfixes/windows/hotfix-ra2-withexitoverlay-revert.patch b/data/hotfixes/windows/hotfix-ra2-withexitoverlay-revert.patch deleted file mode 100644 index 8390b6b..0000000 --- a/data/hotfixes/windows/hotfix-ra2-withexitoverlay-revert.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- a/OpenRA.Mods.RA2/Traits/Render/WithExitOverlay.cs -+++ b/OpenRA.Mods.RA2/Traits/Render/WithExitOverlay.cs -@@ -36,13 +36,18 @@ - public object Create(ActorInitializer init) { return new WithExitOverlay(init.Self, this); } - } - -- public class WithExitOverlay : INotifyDamageStateChanged, INotifyBuildComplete, INotifySold, INotifyProduction, ITick -+ public class WithExitOverlay : INotifyDamageStateChanged, INotifyBuildComplete, INotifySold, INotifyProduction - { - readonly Actor self; - readonly Animation overlay; -- bool buildComplete, enable; -+ bool buildComplete; - CPos exit; - -+ bool IsExitBlocked -+ { -+ get { return self.World.ActorMap.GetActorsAt(exit).Any(a => a != self); } -+ } -+ - public WithExitOverlay(Actor self, WithExitOverlayInfo info) - { - this.self = self; -@@ -56,7 +61,7 @@ - - var anim = new AnimationWithOffset(overlay, - () => body.LocalToWorld(info.Offset.Rotate(body.QuantizeOrientation(self, self.Orientation))), -- () => !buildComplete || !enable); -+ () => !buildComplete || !IsExitBlocked); - - rs.Add(anim, info.Palette, info.IsPlayerPalette); - } -@@ -80,13 +85,6 @@ - public void UnitProduced(Actor self, Actor other, CPos exit) - { - this.exit = exit; -- enable = true; -- } -- -- public void Tick(Actor self) -- { -- if (enable) -- enable = self.World.ActorMap.GetActorsAt(exit).Any(a => a != self); - } - } - } -\ No newline at end of file