mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
feat(core): Increased limit of realms (#1664)
This commit is contained in:
committed by
Francesco Borzì
parent
135b4470ce
commit
c1ebc70b58
@@ -126,7 +126,7 @@ WorldSession::WorldSession(uint32 id, WorldSocket* sock, AccountTypes sec, uint8
|
||||
m_Address = sock->GetRemoteAddress();
|
||||
sock->AddReference();
|
||||
ResetTimeOutTime(false);
|
||||
LoginDatabase.PExecute("UPDATE account SET online = online | (1<<(%u-1)) WHERE id = %u;", realmID, GetAccountId());
|
||||
LoginDatabase.PExecute("UPDATE account SET online = %u WHERE id = %u;", realmID, GetAccountId());
|
||||
}
|
||||
|
||||
InitializeQueryCallbackParameters();
|
||||
@@ -161,7 +161,7 @@ WorldSession::~WorldSession()
|
||||
delete packet;
|
||||
|
||||
if (GetShouldSetOfflineInDB())
|
||||
LoginDatabase.PExecute("UPDATE account SET online = online & ~(1<<(%u-1)) WHERE id = %u;", realmID, GetAccountId()); // One-time query
|
||||
LoginDatabase.PExecute("UPDATE account SET online = %u WHERE id = %u;", realmID, GetAccountId()); // One-time query
|
||||
}
|
||||
|
||||
std::string const & WorldSession::GetPlayerName() const
|
||||
|
||||
Reference in New Issue
Block a user