mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
refactor(Core/World): Create WorldSessionMgr to split session logic out of World (#21400)
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
#include "World.h"
|
||||
#include "WorldPacket.h"
|
||||
#include "WorldSession.h"
|
||||
#include "WorldSessionMgr.h"
|
||||
#include "WorldState.h"
|
||||
#include <cmath>
|
||||
|
||||
@@ -363,7 +364,7 @@ Player::Player(WorldSession* session): Unit(true), m_mover(this)
|
||||
|
||||
m_ControlledByPlayer = true;
|
||||
|
||||
sWorld->IncreasePlayerCount();
|
||||
sWorldSessionMgr->IncreasePlayerCount();
|
||||
|
||||
m_ChampioningFaction = 0;
|
||||
|
||||
@@ -447,7 +448,7 @@ Player::~Player()
|
||||
delete m_reputationMgr;
|
||||
delete _cinematicMgr;
|
||||
|
||||
sWorld->DecreasePlayerCount();
|
||||
sWorldSessionMgr->DecreasePlayerCount();
|
||||
|
||||
if (!m_isInSharedVisionOf.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user