From 4a8092b71e357b513bbc5cfed10f6cb39419ce8a Mon Sep 17 00:00:00 2001 From: Mordred Date: Fri, 10 Feb 2023 21:28:34 +0100 Subject: [PATCH] Revert "Merge and minor cleanup" This reverts commit 4c35944433ec8503f2893e57c1dae38a2c811277. --- src/world/Actor/Player.cpp | 4 + src/world/Manager/PlayerMgr.cpp | 130 +++++++++++++++++++++++++++----- src/world/Manager/PlayerMgr.h | 1 - src/world/Session.cpp | 15 ++-- 4 files changed, 122 insertions(+), 28 deletions(-) diff --git a/src/world/Actor/Player.cpp b/src/world/Actor/Player.cpp index cdbdd059..14826359 100644 --- a/src/world/Actor/Player.cpp +++ b/src/world/Actor/Player.cpp @@ -131,7 +131,11 @@ void Player::unload() setLoadingComplete( false ); // unset player for removal setMarkedForRemoval( false ); + // send updates to mgrs + if( getPartyId() != 0 ) + partyMgr.onMemberDisconnect( *this ); + fcMgr.onFcLogout( getCharacterId() ); syncLastDBWrite(); } diff --git a/src/world/Manager/PlayerMgr.cpp b/src/world/Manager/PlayerMgr.cpp index 0f655dec..8b964728 100644 --- a/src/world/Manager/PlayerMgr.cpp +++ b/src/world/Manager/PlayerMgr.cpp @@ -13,8 +13,8 @@ #include #include -#include "Script/ScriptMgr.h" -#include "WorldServer.h" +#include