From 496155ff0e5ea12582b72d483982411da26486fc Mon Sep 17 00:00:00 2001 From: reaperrr Date: Thu, 5 Jul 2018 11:46:04 +0200 Subject: [PATCH] Remove facing check from WithVoxelWalkerBody `Mobile` now supports considering turning as `IsMoving`, so this check is no longer needed. --- OpenRA.Mods.Cnc/Traits/Render/WithVoxelWalkerBody.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/OpenRA.Mods.Cnc/Traits/Render/WithVoxelWalkerBody.cs b/OpenRA.Mods.Cnc/Traits/Render/WithVoxelWalkerBody.cs index d557bd37ce..46c93a7ee9 100644 --- a/OpenRA.Mods.Cnc/Traits/Render/WithVoxelWalkerBody.cs +++ b/OpenRA.Mods.Cnc/Traits/Render/WithVoxelWalkerBody.cs @@ -51,18 +51,15 @@ namespace OpenRA.Mods.Cnc.Traits.Render { readonly WithVoxelWalkerBodyInfo info; readonly IMove movement; - readonly IFacing facing; readonly ModelAnimation modelAnimation; readonly RenderVoxels rv; - int oldFacing; uint tick, frame, frames; public WithVoxelWalkerBody(Actor self, WithVoxelWalkerBodyInfo info) { this.info = info; movement = self.Trait(); - facing = self.Trait(); var body = self.Trait(); rv = self.Trait(); @@ -78,9 +75,8 @@ namespace OpenRA.Mods.Cnc.Traits.Render void ITick.Tick(Actor self) { - if (movement.IsMoving || facing.Facing != oldFacing) + if (movement.IsMoving) tick++; - oldFacing = facing.Facing; if (tick < info.TickRate) return;