From 1190303d5ffc80bbbd002d01832d26ede8154867 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 29 Jul 2025 15:07:32 +0200 Subject: [PATCH] forgor to reset horizonline check --- src/hardware/hw_bsp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hardware/hw_bsp.c b/src/hardware/hw_bsp.c index e80754d2a..20e8532ba 100644 --- a/src/hardware/hw_bsp.c +++ b/src/hardware/hw_bsp.c @@ -977,6 +977,8 @@ void HWR_CreatePlanePolygons(INT32 bspnum) // reset the portal flag gl_maphasportals = 0; + gl_maphashorizonlines = 0; + // find min/max boundaries of map #ifdef DEBUG_HWBSP CONS_Debug(DBG_RENDER, "Looking for boundaries of map...\n"); @@ -993,7 +995,7 @@ void HWR_CreatePlanePolygons(INT32 bspnum) // allocate extra data for each subsector present in map totsubsectors = numsubsectors + NEWSUBSECTORS; - extrasubsectors = calloc(totsubsectors, sizeof (*extrasubsectors)); + extrasubsectors = calloc(totsubsectors, sizeof(*extrasubsectors)); if (UNLIKELY(extrasubsectors == NULL)) I_Error("couldn't malloc extrasubsectors totsubsectors %s\n", sizeu1(totsubsectors));