mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- fixed double-add of xoffset for wall sprites.
This commit is contained in:
parent
10d0de8dbf
commit
26d737c279
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue