diff --git a/src/game/Weather.cpp b/src/game/Weather.cpp index 04df3ba58ae..959954fb3ca 100644 --- a/src/game/Weather.cpp +++ b/src/game/Weather.cpp @@ -217,9 +217,12 @@ void Weather::SendWeatherUpdateToPlayer(Player* player) WorldPacket data(SMSG_WEATHER, 4 + 4 + 4 + 1); data << uint32(m_type); data << float(m_grade); +#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_8_4 data << uint32(GetSound()); // 1.12 soundid +#endif +#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_9_4 data << uint8(0); // 1 = instant change, 0 = smooth change - +#endif player->GetSession()->SendPacket(&data); #endif } @@ -233,9 +236,12 @@ bool Weather::SendWeatherForPlayersInZone(Map const* _map) WorldPacket data(SMSG_WEATHER, 4 + 4 + 4 + 1); data << uint32(m_type); data << float(m_grade); +#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_8_4 data << uint32(GetSound()); // 1.12 soundid +#endif +#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_9_4 data << uint8(0); // 1 = instant change, 0 = smooth change - +#endif // Send the weather packet to all players in this zone if (!_map->SendToPlayersInZone(&data, m_zone)) return false;