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);