From 1cf052b3cdfe523e474c2d65fd679e0f58aa58c2 Mon Sep 17 00:00:00 2001 From: Hans Kokx Date: Thu, 10 Sep 2026 15:23:44 +0200 Subject: [PATCH] Fixed east-west wall textures --- raycaster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raycaster.c b/raycaster.c index 40b9657..ec75588 100644 --- a/raycaster.c +++ b/raycaster.c @@ -873,7 +873,7 @@ void drawRays3D() else // East-west walls (PI2 -> PI3) { textureX = (int)rayY % mapSize; - if (rayAngle > PI2 || rayAngle < PI3) // West + if (rayAngle > PI2 && rayAngle < PI3) // West { textureX = 31 - textureX; }