Rename WRot.Zero to WRot.None.

This commit is contained in:
Paul Chote
2020-07-12 13:46:35 +01:00
committed by tovl
parent 60a7f53491
commit 8c3793e7ea
6 changed files with 7 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ namespace OpenRA.Mods.Common.Traits.Render
var localOffset = Info.LocalOffset + new WVec(-armament.Recoil, WDist.Zero, WDist.Zero);
var turretOffset = turreted != null ? turreted.Position(self) : WVec.Zero;
var quantizedBody = body.QuantizeOrientation(self, self.Orientation);
var turretOrientation = turreted != null ? turreted.WorldOrientation(self) - quantizedBody : WRot.Zero;
var turretOrientation = turreted != null ? turreted.WorldOrientation(self) - quantizedBody : WRot.None;
var quantizedTurret = body.QuantizeOrientation(self, turretOrientation);
return turretOffset + body.LocalToWorld(localOffset.Rotate(quantizedTurret).Rotate(quantizedBody));