Convert QuantizeFacing to WAngle facings.
This commit is contained in:
@@ -16,7 +16,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
[Desc("Fudge the coordinate system angles like the early games (for sprite sequences that use classic facing fudge).")]
|
||||
public class ClassicFacingBodyOrientationInfo : BodyOrientationInfo
|
||||
{
|
||||
public override int QuantizeFacing(int facing, int facings)
|
||||
public override WAngle QuantizeFacing(WAngle facing, int facings)
|
||||
{
|
||||
return Util.ClassicQuantizeFacing(facing, facings);
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace OpenRA.Mods.Cnc.Traits.Render
|
||||
var passengerInits = new TypeDictionary()
|
||||
{
|
||||
new OwnerInit(p.Owner),
|
||||
new DynamicFacingInit(() => body.QuantizeFacing(facing.Facing)),
|
||||
new DynamicFacingInit(() => body.QuantizeFacing(WAngle.FromFacing(facing.Facing)).Facing),
|
||||
};
|
||||
|
||||
foreach (var api in p.TraitsImplementing<IActorPreviewInitModifier>())
|
||||
|
||||
Reference in New Issue
Block a user