This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/game/World.cpp b/src/game/World.cpp | |
| index c6e978b..0395494 100644 | |
| --- a/src/game/World.cpp | |
| +++ b/src/game/World.cpp | |
| @@ -1871,6 +1871,12 @@ void World::KickAll() | |
| itr->second->KickPlayer(); | |
| } | |
| +// Reset active_realm_id from account table | |
| +void World::ResetRealmId() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/game/WorldSocket.cpp b/src/game/WorldSocket.cpp | |
| index 1de190b..fadf92d 100644 | |
| --- a/src/game/WorldSocket.cpp | |
| +++ b/src/game/WorldSocket.cpp | |
| @@ -30,6 +30,8 @@ | |
| #include "WorldSocket.h" | |
| #include "Common.h" | |
| +#include "Config/ConfigEnv.h" | |
| + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/game/WorldSocket.cpp b/src/game/WorldSocket.cpp | |
| index 1de190b..0c1db34 100644 | |
| --- a/src/game/WorldSocket.cpp | |
| +++ b/src/game/WorldSocket.cpp | |
| @@ -30,6 +30,8 @@ | |
| #include "WorldSocket.h" | |
| #include "Common.h" | |
| +#include "Config/ConfigEnv.h" | |
| + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/game/WorldSocket.cpp b/src/game/WorldSocket.cpp | |
| index 1de190b..39218a1 100644 | |
| --- a/src/game/WorldSocket.cpp | |
| +++ b/src/game/WorldSocket.cpp | |
| @@ -29,7 +29,7 @@ | |
| #include "WorldSocket.h" | |
| #include "Common.h" | |
| - | |
| +#include "Config/ConfigEnv.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp | |
| index 512da99..06a0ff6 100644 | |
| --- a/src/game/CharacterHandler.cpp | |
| +++ b/src/game/CharacterHandler.cpp | |
| @@ -568,6 +568,15 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder) | |
| return; | |
| } | |
| + if(!pCurrChar->CheckAccessRealm(playerGuid)) | |
| + { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp | |
| index 512da99..06a0ff6 100644 | |
| --- a/src/game/CharacterHandler.cpp | |
| +++ b/src/game/CharacterHandler.cpp | |
| @@ -568,6 +568,15 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder) | |
| return; | |
| } | |
| + if(!pCurrChar->CheckAccessRealm(playerGuid)) | |
| + { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp | |
| index 20ac51d..1ca5f3c 100644 | |
| --- a/src/game/CharacterHandler.cpp | |
| +++ b/src/game/CharacterHandler.cpp | |
| -705,7 +705,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder) | |
| pCurrChar->SendInitialPacketsAfterAddToMap(); | |
| CharacterDatabase.PExecute("UPDATE characters SET online = 1 WHERE guid = '%u'", pCurrChar->GetGUIDLow()); | |
| - loginDatabase.PExecute("UPDATE account SET online = 1 WHERE id = '%u'", GetAccountId()); | |
| + loginDatabase.PExecute("UPDATE account SET online = 1, ActiveRealmID = %d WHERE id = '%u'", realmID, GetAccountId()); |
NewerOlder