From d3bebe852234fbc5a6727272dcea7b9565eaceb5 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 19 Oct 2025 20:57:39 +0200 Subject: [PATCH] those should be initialised to something --- src/r_things.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/r_things.cpp b/src/r_things.cpp index 74593231f..2e5acfdac 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -2809,11 +2809,6 @@ void R_ClipSprites(drawseg_t* dsstart, portal_t* portal) drawseg_t* ds; INT32 i; - if (visspritecount - clippedvissprites <= 0) - { - return; - } - // e6y // Reducing of cache misses in the following R_DrawSprite() // Makes sense for scenes with huge amount of drawsegs. @@ -2823,6 +2818,11 @@ void R_ClipSprites(drawseg_t* dsstart, portal_t* portal) drawsegs_xranges[i].count = 0; } + if (visspritecount - clippedvissprites <= 0) + { + return; + } + if (drawsegs_xrange_size < maxdrawsegs) { // haleyjd: fix reallocation to track 2x size