mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- HWSprite::Process()
: Added x-off-by-one-fix for sprites similar to yspans from b7bad558da
.
This commit is contained in:
parent
ba2defeb14
commit
172e3996bb
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue