- fixed double-add of xoffset for wall sprites.

This commit is contained in:
Christoph Oelckers 2021-04-12 15:50:52 +02:00
parent 10d0de8dbf
commit 26d737c279

View file

@ -205,7 +205,7 @@ void GetWallSpritePosition(const spritetype* spr, vec2_t pos, vec2_t* out, bool
int x = bsin(spr->ang) * spr->xrepeat;
int y = -bcos(spr->ang) * spr->xrepeat;
int xoff = leftofs + spr->xoffset;
int xoff = leftofs;
if (spr->cstat & CSTAT_SPRITE_XFLIP) xoff = -xoff;
int origin = (width >> 1) + xoff;