mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-25 13:03:50 +00:00
feat: show rain particles and audio during thunderstorm weather
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.
This commit is contained in:
parent
727dfa5c6c
commit
44ff2dd4ee
1 changed files with 1 additions and 0 deletions
|
|
@ -2866,6 +2866,7 @@ void Renderer::update(float deltaTime) {
|
||||||
// Server-driven weather (SMSG_WEATHER) — authoritative
|
// Server-driven weather (SMSG_WEATHER) — authoritative
|
||||||
if (wType == 1) weather->setWeatherType(Weather::Type::RAIN);
|
if (wType == 1) weather->setWeatherType(Weather::Type::RAIN);
|
||||||
else if (wType == 2) weather->setWeatherType(Weather::Type::SNOW);
|
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);
|
else weather->setWeatherType(Weather::Type::NONE);
|
||||||
weather->setIntensity(wInt);
|
weather->setIntensity(wInt);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue