Fixed east-west wall textures

This commit is contained in:
2026-09-10 15:23:44 +02:00
parent 5597afe44f
commit 1cf052b3cd
+1 -1
View File
@@ -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;
}