mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Merge remote branch 'origin/master' into 330
This commit is contained in:
commit
3def8fa353
134 changed files with 1751 additions and 2300 deletions
|
|
@ -41,7 +41,7 @@
|
|||
WorldSession::WorldSession(uint32 id, WorldSocket *sock, AccountTypes sec, uint8 expansion, time_t mute_time, LocaleConstant locale) :
|
||||
LookingForGroup_auto_join(false), LookingForGroup_auto_add(false), m_muteTime(mute_time),
|
||||
_player(NULL), m_Socket(sock),_security(sec), _accountId(id), m_expansion(expansion),
|
||||
m_sessionDbcLocale(sWorld.GetAvailableDbcLocale(locale)), m_sessionDbLocaleIndex(objmgr.GetIndexForLocale(locale)),
|
||||
m_sessionDbcLocale(sWorld.GetAvailableDbcLocale(locale)), m_sessionDbLocaleIndex(sObjectMgr.GetIndexForLocale(locale)),
|
||||
_logoutTime(0), m_inQueue(false), m_playerLoading(false), m_playerLogout(false), m_playerRecentlyLogout(false),
|
||||
m_latency(0), m_TutorialsChanged(false)
|
||||
{
|
||||
|
|
@ -378,7 +378,7 @@ void WorldSession::LogoutPlayer(bool Save)
|
|||
loginDatabase.PExecute("UPDATE account SET active_realm_id = 0 WHERE id = '%u'", GetAccountId());
|
||||
|
||||
///- If the player is in a guild, update the guild roster and broadcast a logout message to other guild members
|
||||
Guild *guild = objmgr.GetGuildById(_player->GetGuildId());
|
||||
Guild *guild = sObjectMgr.GetGuildById(_player->GetGuildId());
|
||||
if(guild)
|
||||
{
|
||||
guild->SetMemberStats(_player->GetGUID());
|
||||
|
|
@ -523,7 +523,7 @@ void WorldSession::SendSetPhaseShift(uint32 PhaseShift)
|
|||
|
||||
const char * WorldSession::GetMangosString( int32 entry ) const
|
||||
{
|
||||
return objmgr.GetMangosString(entry,GetSessionDbLocaleIndex());
|
||||
return sObjectMgr.GetMangosString(entry,GetSessionDbLocaleIndex());
|
||||
}
|
||||
|
||||
void WorldSession::Handle_NULL( WorldPacket& recvPacket )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue