From 1dfba51665244c158c2ba1a302dd8b269b8e470b Mon Sep 17 00:00:00 2001 From: Forcecore Date: Thu, 7 Sep 2017 14:32:22 +0900 Subject: [PATCH] Removed dead WSB from Refinery trait --- OpenRA.Mods.Common/Traits/Buildings/Refinery.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Buildings/Refinery.cs b/OpenRA.Mods.Common/Traits/Buildings/Refinery.cs index 612fc74902..7715ba6b4c 100644 --- a/OpenRA.Mods.Common/Traits/Buildings/Refinery.cs +++ b/OpenRA.Mods.Common/Traits/Buildings/Refinery.cs @@ -55,7 +55,6 @@ namespace OpenRA.Mods.Common.Traits { readonly Actor self; readonly RefineryInfo info; - readonly WithSpriteBody wsb; PlayerResources playerResources; int currentDisplayTick = 0; @@ -78,7 +77,6 @@ namespace OpenRA.Mods.Common.Traits this.info = info; playerResources = self.Owner.PlayerActor.Trait(); currentDisplayTick = info.TickRate; - wsb = self.Trait(); } public virtual Activity DockSequence(Actor harv, Actor self) @@ -123,10 +121,7 @@ namespace OpenRA.Mods.Common.Traits { // Harvester was killed while unloading if (dockedHarv != null && dockedHarv.IsDead) - { - wsb.CancelCustomAnimation(self); dockedHarv = null; - } if (info.ShowTicks && currentDisplayValue > 0 && --currentDisplayTick <= 0) {