Fix IDE0039
This commit is contained in:
@@ -74,15 +74,15 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
anim.PlayRepeating(RenderSprites.NormalizeSequence(anim, init.GetDamageState(), Sequence));
|
||||
|
||||
var body = init.Actor.TraitInfo<BodyOrientationInfo>();
|
||||
Func<WRot> orientation = () => body.QuantizeOrientation(WRot.FromYaw(facing()), facings);
|
||||
Func<WVec> offset = () => body.LocalToWorld(Offset.Rotate(orientation()));
|
||||
Func<int> zOffset = () =>
|
||||
WRot Orientation() => body.QuantizeOrientation(WRot.FromYaw(facing()), facings);
|
||||
WVec Offset() => body.LocalToWorld(this.Offset.Rotate(Orientation()));
|
||||
int ZOffset()
|
||||
{
|
||||
var tmpOffset = offset();
|
||||
var tmpOffset = Offset();
|
||||
return tmpOffset.Y + tmpOffset.Z + 1;
|
||||
};
|
||||
}
|
||||
|
||||
yield return new SpriteActorPreview(anim, offset, zOffset, p);
|
||||
yield return new SpriteActorPreview(anim, Offset, ZOffset, p);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user