feat(core): Increased limit of realms (#1664)

This commit is contained in:
Pondaveia
2019-04-13 17:07:26 +01:00
committed by Francesco Borzì
parent 135b4470ce
commit c1ebc70b58
4 changed files with 18 additions and 5 deletions

View File

@@ -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