Fixed east-west wall textures
This commit is contained in:
+1
-1
@@ -873,7 +873,7 @@ void drawRays3D()
|
|||||||
else // East-west walls (PI2 -> PI3)
|
else // East-west walls (PI2 -> PI3)
|
||||||
{
|
{
|
||||||
textureX = (int)rayY % mapSize;
|
textureX = (int)rayY % mapSize;
|
||||||
if (rayAngle > PI2 || rayAngle < PI3) // West
|
if (rayAngle > PI2 && rayAngle < PI3) // West
|
||||||
{
|
{
|
||||||
textureX = 31 - textureX;
|
textureX = 31 - textureX;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user