From 9801297121690e1c6afdbec57377302fb6e5f3af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Wed, 12 Sep 2018 15:59:32 +0200 Subject: [PATCH] Improve loop --- raycastlib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raycastlib.h b/raycastlib.h index fc19861..ffa2dbf 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -887,10 +887,10 @@ void _columnFunction(HitResult *hits, uint16_t hitCount, uint16_t x, Ray ray) p.depth = (i - _fogStartYTop) * _floorDepthStep + ceilCameraDiff; _pixelFunction(&p); } - } - if (z1ScreenCeil > y2) - y2 = z1ScreenCeil; +if (z1ScreenCeil > y2) + y2 = z1ScreenCeil; + } // draw floor wall