From b916ed62fb2dcdc34d3b9973d1ec2b58146b9a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sat, 22 Sep 2018 14:01:16 +0200 Subject: [PATCH] Fix pixel overwrite --- raycastlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raycastlib.h b/raycastlib.h index 26bc139..0072daa 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -1313,7 +1313,7 @@ void _columnFunctionSimple(RCL_HitResult *hits, uint16_t hitCount, uint16_t x, p.texCoords.x = p.hit.textureCoord; y = _drawWall(y - 1,wallStart,wallStart + wallHeightScreen - 1,-1, - _RCL_camera.resolution.y,1,&p); + _RCL_camera.resolution.y,1,&p) + 1; // draw floor