WithAttackOverlay: fix ZOffset not related to actor.

This commit is contained in:
dnqbob
2024-04-27 22:49:56 +08:00
committed by Gustas
parent 106c18480f
commit bdb0cfe243

View File

@@ -55,7 +55,7 @@ namespace OpenRA.Mods.Common.Traits.Render
overlay = new Animation(init.World, renderSprites.GetImage(init.Self), RenderSprites.MakeFacingFunc(init.Self));
renderSprites.Add(new AnimationWithOffset(overlay, null, () => !attacking),
renderSprites.Add(new AnimationWithOffset(overlay, null, () => !attacking, p => RenderUtils.ZOffsetFromCenter(init.Self, p, 1)),
info.Palette, info.IsPlayerPalette);
}