mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
Weather system fixed
Fixed by implementing the cmangos Cata commit [c13018] Improve Weather handling and comparing their code with the current system. Thanks,. cmangos :-)
This commit is contained in:
parent
3b52b46199
commit
6db0ba8ae9
12 changed files with 55 additions and 93 deletions
|
|
@ -6947,14 +6947,12 @@ void Player::UpdateZone(uint32 newZone, uint32 newArea)
|
|||
sOutdoorPvPMgr.HandlePlayerEnterZone(this, newZone);
|
||||
|
||||
SendInitWorldStates(newZone, newArea); // only if really enters to new zone, not just area change, works strange...
|
||||
// WEATHER ISSUE - commented out to prevent crash on entering game world
|
||||
/*
|
||||
|
||||
if (sWorld.getConfig(CONFIG_BOOL_WEATHER))
|
||||
{
|
||||
Weather* wth = GetMap()->GetWeatherSystem()->FindOrCreateWeather(newZone);
|
||||
wth->SendWeatherUpdateToPlayer(this);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
#ifdef ENABLE_ELUNA
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue