Core/Weather: merged commit 6eb997394722fcd4b5248646b5abfa185a7ec58f

This commit is contained in:
Ovalord committed 2018-02-14 15:49:48 +01:00
1 parent 844450d542
commit dc8f263fc8
12 files changed
+106 -141

No files matched your search

+3 -8
View File
@@ -7529,14 +7529,9 @@ void Player::UpdateZone(uint32 newZone, uint32 newArea)
if (!zone)
return;
if (sWorld->getBoolConfig(CONFIG_WEATHER) && !HasAuraType(SPELL_AURA_FORCE_WEATHER))
{
if (Weather* weather = WeatherMgr::FindWeather(zone->ID))
weather->SendWeatherUpdateToPlayer(this);
else if (!WeatherMgr::AddWeather(zone->ID))
// send fine weather packet to remove old zone's weather
WeatherMgr::SendFineWeatherUpdateToPlayer(this);
}
if (sWorld->getBoolConfig(CONFIG_WEATHER))
GetMap()->GetOrGenerateZoneDefaultWeather(newZone);
GetMap()->SendZoneDynamicInfo(newZone, this);
sScriptMgr->OnPlayerUpdateZone(this, newZone, newArea);