- HWSprite::Process(): Added x-off-by-one-fix for sprites similar to yspans from b7bad558da.

This commit is contained in:
Mitchell Richters 2021-04-05 19:37:00 +10:00
parent ba2defeb14
commit 172e3996bb

View file

@ -405,6 +405,8 @@ void HWSprite::Process(HWDrawInfo* di, spritetype* spr, sectortype* sector, int
float xoff = (tilexoff * spr->xrepeat) * (0.2f / 16.f);
float yoff = (tileyoff * spr->yrepeat) * (0.25f / 16.f);
if (xsize & 1) xoff -= spr->xrepeat * (0.1f / 16.f); // Odd xspans (taken from polymost as-is)
if (spr->cstat & CSTAT_SPRITE_YCENTER)
{
yoff -= height * 0.5;