From ccdb07aadfc0024f3aafc9365c0567199631b358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Fri, 21 Sep 2018 14:03:31 +0200 Subject: [PATCH] Fix regression --- raycastlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raycastlib.h b/raycastlib.h index 043f595..a5444a3 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -1262,7 +1262,7 @@ void _columnFunctionSimple(RCL_HitResult *hits, uint16_t hitCount, uint16_t x, p.isWall = 1; p.isFloor = 1; - p.depth = RCL_dist; + p.depth = dist; #if RCL_ROLL_TEXTURE_COORDS == 1 && RCL_COMPUTE_WALL_TEXCOORDS == 1 p.hit.textureCoord -= p.hit.doorRoll;