Fix turret positioning in the map editor.

This commit is contained in:
Paul Chote
2019-12-07 11:51:37 +00:00
committed by teinarss
parent 630ca0aefb
commit 79aac08a48
3 changed files with 5 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ namespace OpenRA.Mods.Common.Effects
IEnumerable<IRenderable> IEffectAnnotation.RenderAnnotation(WorldRenderer wr)
{
var screenPos = wr.Viewport.WorldToViewPx(wr.ScreenPxPosition(pos));
return anim.RenderUI(screenPos, WVec.Zero, 0, wr.Palette(palette), 1f);
return anim.RenderUI(wr, screenPos, WVec.Zero, 0, wr.Palette(palette), 1f);
}
}
}