From 26d737c2793b6276a8bbde8d19ad45adc620157f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 12 Apr 2021 15:50:52 +0200 Subject: [PATCH] - fixed double-add of xoffset for wall sprites. --- source/core/gamefuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/gamefuncs.cpp b/source/core/gamefuncs.cpp index 23191157e..f34cd1249 100644 --- a/source/core/gamefuncs.cpp +++ b/source/core/gamefuncs.cpp @@ -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;