From 63ca366bd8d5a16bbc9abc5103dce0874d553e65 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 23 Oct 2024 13:00:22 +0200 Subject: [PATCH] dont play rain sounds when weather is disabled --- src/p_mobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 5b7d25fd2..b79c4e0b2 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -10325,7 +10325,7 @@ void P_PrecipitationEffects(void) return; } - boolean sounds_rain = (rainsfx && (!leveltime || leveltime % 80 == 1)); + boolean sounds_rain = ((cv_drawdist_precip.value != 0) && rainsfx && (!leveltime || leveltime % 80 == 1)); // Currently thunderstorming with lightning, and we're sounding the thunder... // and where there's thunder, there's gotta be lightning!