From 44ff2dd4eebf0b945c4e3b223c01e5475a7826ce Mon Sep 17 00:00:00 2001 From: Kelsi Date: Fri, 13 Mar 2026 09:59:58 -0700 Subject: [PATCH] feat: show rain particles and audio during thunderstorm weather MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Storm weather (wType==3 from SMSG_WEATHER) previously rendered no visual particles and no audio. Map it to RAIN in the weather system so thunderstorms produce rain particles at the server-sent intensity level, and the ambient sound manager picks up rain_heavy/medium/light audio from the same intensity logic already used for plain rain. This pairs with the lightning commit — storms now have both rain particles and lightning flashes for a complete thunderstorm experience. --- src/rendering/renderer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rendering/renderer.cpp b/src/rendering/renderer.cpp index af577ca6..f5ab086e 100644 --- a/src/rendering/renderer.cpp +++ b/src/rendering/renderer.cpp @@ -2866,6 +2866,7 @@ void Renderer::update(float deltaTime) { // Server-driven weather (SMSG_WEATHER) — authoritative if (wType == 1) weather->setWeatherType(Weather::Type::RAIN); else if (wType == 2) weather->setWeatherType(Weather::Type::SNOW); + else if (wType == 3) weather->setWeatherType(Weather::Type::RAIN); // thunderstorm — use rain particles else weather->setWeatherType(Weather::Type::NONE); weather->setIntensity(wInt); } else {