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

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Traits
public virtual int QuantizeFacing(int facing, int facings)
{
return Util.QuantizeFacing(facing, facings) * (256 / facings);
return Util.QuantizeFacing(facing, facings);
}
public override object Create(ActorInitializer init) { return new BodyOrientation(init, this); }