From 313e63094650759692688c801792d66b80f57611 Mon Sep 17 00:00:00 2001 From: GLoOoccK <155241167+GLoOoccK@users.noreply.github.com> Date: Mon, 1 Jun 2026 21:12:12 -0300 Subject: [PATCH] cl_dll: environment: Fix MsgFunc_ReceiveW --- cl_dll/environment.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cl_dll/environment.cpp b/cl_dll/environment.cpp index b238659a..0bd022f2 100644 --- a/cl_dll/environment.cpp +++ b/cl_dll/environment.cpp @@ -1601,6 +1601,14 @@ int CEnvironment::MsgFunc_ReceiveW(const char *pszName, int iSize, void *pbuf) const int weatherType = reader.ReadByte(); + if( weatherType == 0 ) + { + m_iSavedWeatherType = 0; + RemoveRain(0); + RemoveSnow(0); + return 1; + } + if (weatherType < 1 || weatherType > 2) return 1;