From b644000b02ecaf071fb6b0d5db0ed145b3f29899 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 7 May 2021 00:18:13 +0200 Subject: [PATCH] - fixed texture y-flipping on bottom tiers of walls. The flip flag was taken from the wrong side of the wall. --- source/core/rendering/scene/hw_walls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/rendering/scene/hw_walls.cpp b/source/core/rendering/scene/hw_walls.cpp index 76288447d..4c528a7a3 100644 --- a/source/core/rendering/scene/hw_walls.cpp +++ b/source/core/rendering/scene/hw_walls.cpp @@ -705,7 +705,7 @@ void HWWall::DoTexture(HWDrawInfo* di, walltype* wal, walltype* refwall, float r { float h = hl + (hr - hl) * frac; h = (-(float)(refheight + (h * 256)) / ((th * 2048.0f) / (float)(wal->yrepeat))) + ypanning; - if (wal->cstat & CSTAT_WALL_YFLIP) h = -h; + if (refwall->cstat & CSTAT_WALL_YFLIP) h = -h; return h; };