From 8b1fbce3620ea1a4ae9aa7f42e24c0f0821e80c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Thu, 13 Sep 2018 11:18:31 +0200 Subject: [PATCH] Fix horizon --- raycastlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raycastlib.h b/raycastlib.h index 451f614..8953a5b 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -838,7 +838,7 @@ void _columnFunction(HitResult *hits, uint16_t hitCount, uint16_t x, Ray ray) pref##PosY = limit; p.isWall = 0; - p.isHorizon = 0; + p.isHorizon = drawingHorizon; // draw floor until wall p.isFloor = 1; -- 2.11.4.GIT