Change QuantizeFacing to return a facing instead of an index.

This commit is contained in:
Paul Chote
2020-05-27 22:00:49 +01:00
committed by reaperrr
parent 7c6ec577dc
commit bfb6c671fb
8 changed files with 49 additions and 13 deletions

View File

@@ -176,7 +176,7 @@ namespace OpenRA.Mods.Common.Traits
var sequence = a.Info.MuzzleSequence;
if (a.Info.MuzzleSplitFacings > 0)
sequence += Util.QuantizeFacing(muzzleFacing, a.Info.MuzzleSplitFacings).ToString();
sequence += Util.IndexFacing(muzzleFacing, a.Info.MuzzleSplitFacings).ToString();
var muzzleFlash = new AnimationWithOffset(muzzleAnim,
() => PortOffset(self, port),