From 41bcf97f36c60ba239c6ee09c056129411e55aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Tue, 11 Sep 2018 12:57:16 +0200 Subject: [PATCH] Fix drawing bug --- raycastlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raycastlib.h b/raycastlib.h index 8e525a3..8ce6ee1 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -869,7 +869,7 @@ void _columnFunction(HitResult *hits, uint16_t hitCount, uint16_t x, Ray ray) { iTo = y > zBottomCeil ? zBottomCeil : y; - for (int_maybe32_t i = z1ScreenCeil > y2 ? z1ScreenCeil : y2; i <= iTo; + for (int_maybe32_t i = z1ScreenCeil > y2 ? z1ScreenCeil : y2; i < iTo; ++i) { p.position.y = i;