From f4e139485a43e2a060d85883879eee2559493665 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 25 Apr 2018 00:30:35 +0200 Subject: [PATCH] - fixed return value of hw_CheckViewArea. --- src/hwrenderer/scene/hw_fakeflat.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hwrenderer/scene/hw_fakeflat.cpp b/src/hwrenderer/scene/hw_fakeflat.cpp index e41a000074..994cd95fa6 100644 --- a/src/hwrenderer/scene/hw_fakeflat.cpp +++ b/src/hwrenderer/scene/hw_fakeflat.cpp @@ -173,8 +173,10 @@ area_t hw_CheckViewArea(area_t in_area, vertex_t *v1, vertex_t *v2, sector_t *fr // allow some tolerance in case slopes are involved if (cz1 <= fz1 + 1. / 100 && cz2 <= fz2 + 1. / 100) return area_below; + else + return area_normal; } - return area_normal; + return in_area; }