Skip to content

Fix offsetting of rotated sprites drawn in the HUD by Lua

Monster Iestyn requested to merge kill-hud-feetoffset into next

When v.getSpritePatch/v.getSprite2Patch was used to get a rotated sprite in Lua, it would add an extra 4 fracunits to the y offset that is not applied to non-rotated sprites. This offset is the reason why sprites with angle 0 appear to be misaligned compared to other angles, particularly when people make a rotating animation with a patch in HUD Lua scripts. To put it in short, this extra offset is definitely not needed for patches drawn in the HUD at all, so I've killed it.

Merge request reports