From 8ffa4b3d8166aeafd70e96f9d2489d57cd443834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Tue, 11 Sep 2018 13:33:06 +0200 Subject: [PATCH] Bug workaround --- raycastlib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/raycastlib.h b/raycastlib.h index 8ce6ee1..5543032 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -804,6 +804,9 @@ void _columnFunction(HitResult *hits, uint16_t hitCount, uint16_t x, Ray ray) if (zTop <= zBottomCeil) zBottomCeil = zTop; // walls on ceiling and floor met + if (z1Screen == 0) // TMP: nasty shear bug workaround + z1Screen = -1; + // draw floor until wall p.isWall = 0;