From fa9582cc722d1c347bc8b5fb4d05bc3abd0753f8 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 22 Jan 2025 15:43:24 +0100 Subject: [PATCH] no need to check for invisible precip here the early returns indirectly handles things since we dont have custom weather support in kart --- src/hardware/hw_main.c | 5 +---- src/r_things.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index c0757e1b6..b01ceab39 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4509,11 +4509,8 @@ static void HWR_AddPrecipitationSprites(void) { for (by = yl; by <= yh; by++) { - for (th = precipblocklinks[(by * bmapwidth) + bx]; th; th = th->bnext) + for (th = precipblocklinks[(by * bmapwidth) + bx]; th; th = next) { - if (th->precipflags & PCF_INVISIBLE) - continue; - HWR_ProjectPrecipitationSprite(th); } } diff --git a/src/r_things.c b/src/r_things.c index 020ca5316..b4b56fdd5 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -2086,12 +2086,9 @@ void R_AddPrecipitationSprites(void) { for (th = precipblocklinks[(by * bmapwidth) + bx]; th; th = next) { - // Store this beforehand because R_ProjectPrecipitionSprite may free th (see P_PrecipThinker) + // Store this beforehand because R_ProjectPrecipitationSprite may free th (see P_PrecipThinker) next = th->bnext; - if (th->precipflags & PCF_INVISIBLE) - continue; - R_ProjectPrecipitationSprite(th); } }