From 4bcb1444fba19a76d073548be0f55d4938cf9178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=BE=D0=B2?= <22411953+Vladislav4KZ@users.noreply.github.com> Date: Tue, 24 Mar 2026 18:35:11 +0000 Subject: [PATCH] client: fix weather particles freezing and intensity burst on cl_weather toggle --- cl_dll/rain.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cl_dll/rain.cpp b/cl_dll/rain.cpp index 86db25dc..d45857a0 100644 --- a/cl_dll/rain.cpp +++ b/cl_dll/rain.cpp @@ -171,7 +171,7 @@ void ProcessRain( void ) Rain.weatherValue = gHUD.cl_weather->value; - if( Rain.dripsPerSecond == 0 || !Rain.weatherValue ) + if( Rain.dripsPerSecond == 0 ) return; // disabled // first frame @@ -227,6 +227,12 @@ void ProcessRain( void ) } } + if( !Rain.weatherValue ) + { + Rain.nextspawntime = Rain.curtime; + return; + } + int maxDelta = speed * Rain.timedelta; // maximum height randomize distance float falltime = (Rain.globalHeight + 4096) / speed;