refactor(Core/World): Create WorldSessionMgr to split session logic out of World (#21400)
This commit is contained in:
parent
0f0b341d9d
commit
edcfaeb845
32 changed files with 713 additions and 686 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include "ScriptMgr.h"
|
||||
#include "Util.h"
|
||||
#include "World.h"
|
||||
#include "WorldSessionMgr.h"
|
||||
|
||||
/// Create the Weather object
|
||||
Weather::Weather(uint32 zone, WeatherData const* weatherChances)
|
||||
|
|
@ -203,7 +204,7 @@ bool Weather::UpdateWeather()
|
|||
WorldPackets::Misc::Weather weather(state, m_grade);
|
||||
|
||||
//- Returns false if there were no players found to update
|
||||
if (!sWorld->SendZoneMessage(m_zone, weather.Write()))
|
||||
if (!sWorldSessionMgr->SendZoneMessage(m_zone, weather.Write()))
|
||||
return false;
|
||||
|
||||
///- Log the event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue