From 1a508966851bc9dc6e2a8c7e855804f29e3b7321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Mon, 7 Oct 2019 21:42:53 +0200 Subject: [PATCH] Update raycastlib --- raycastlib.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/raycastlib.h b/raycastlib.h index e961133..f57d8f6 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -26,7 +26,7 @@ author: Miloslav "drummyfish" Ciz license: CC0 1.0 - version: 0.86 + version: 0.87 */ #include @@ -1163,6 +1163,11 @@ static inline int16_t _RCL_drawWall( heightScaled - pixelInfo->texCoords.y; #endif } + else + { + // with floor wall, don't start under 0 + pixelInfo->texCoords.y = RCL_max(0,pixelInfo->texCoords.y); + } RCL_Unit textureCoordScaled = pixelInfo->texCoords.y;