Fix IDE0039
This commit is contained in:
@@ -55,20 +55,20 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
anim.Play(RenderSprites.NormalizeSequence(anim, init.GetDamageState(), Sequence));
|
||||
|
||||
var facing = init.GetFacing();
|
||||
Func<WRot> orientation = () => body.QuantizeOrientation(WRot.FromYaw(facing()), facings);
|
||||
Func<WVec> offset = () => body.LocalToWorld(t.Offset.Rotate(orientation()));
|
||||
Func<int> zOffset = () =>
|
||||
WRot Orientation() => body.QuantizeOrientation(WRot.FromYaw(facing()), facings);
|
||||
WVec Offset() => body.LocalToWorld(t.Offset.Rotate(Orientation()));
|
||||
int ZOffset()
|
||||
{
|
||||
var tmpOffset = offset();
|
||||
var tmpOffset = Offset();
|
||||
return -(tmpOffset.Y + tmpOffset.Z) + 1;
|
||||
};
|
||||
}
|
||||
|
||||
if (IsPlayerPalette)
|
||||
p = init.WorldRenderer.Palette(Palette + init.Get<OwnerInit>().InternalName);
|
||||
else if (Palette != null)
|
||||
p = init.WorldRenderer.Palette(Palette);
|
||||
|
||||
yield return new SpriteActorPreview(anim, offset, zOffset, p);
|
||||
yield return new SpriteActorPreview(anim, Offset, ZOffset, p);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user