From d3368392c29601ddf93f2095c1a5b003dbc1b4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sat, 29 Sep 2018 13:17:04 +0200 Subject: [PATCH] Fix a rendering bug --- raycastlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raycastlib.h b/raycastlib.h index 5ca2cea..764d7d7 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -1284,7 +1284,7 @@ void _RCL_columnFunctionComplex(RCL_HitResult *hits, uint16_t hitCount, uint16_t if (!drawingHorizon) { hit = hits[j]; - distance = hit.distance; + distance = RCL_nonZero(hit.distance); p.hit = hit; fWallHeight = _RCL_floorFunction(hit.square.x,hit.square.y);