From cf32ce90b65a30bb591ece4b851964f7dcec712c Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 1 Jan 2025 05:06:52 +0100 Subject: [PATCH] dont iterate through precip blockmap if there is no precip --- src/hardware/hw_main.c | 2 +- src/r_things.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 025b17ae8..44f178591 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4436,7 +4436,7 @@ static void HWR_AddPrecipitationSprites(void) fixed_t drawdist; // save a little time on invisible weather - if (curWeather == PRECIP_BLANK || curWeather == PRECIP_STORM_NORAIN) + if (curWeather == PRECIP_NONE || curWeather == PRECIP_BLANK || curWeather == PRECIP_STORM_NORAIN) { return; } diff --git a/src/r_things.c b/src/r_things.c index ad5b6b182..c08dc014b 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -2059,7 +2059,7 @@ void R_AddPrecipitationSprites(void) precipmobj_t *th, *next; // no, no infinite draw distance for precipitation. this option at zero is supposed to turn it off - if (drawdist == 0 || curWeather == PRECIP_BLANK || curWeather == PRECIP_STORM_NORAIN) + if (drawdist == 0 || curWeather == PRECIP_NONE || curWeather == PRECIP_BLANK || curWeather == PRECIP_STORM_NORAIN) { return; }