diff options
Diffstat (limited to 'src/game/Level1.cpp')
-rw-r--r-- | src/game/Level1.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp index 86a2ce95d25..9b994062d8e 100644 --- a/src/game/Level1.cpp +++ b/src/game/Level1.cpp @@ -784,6 +784,8 @@ bool ChatHandler::HandleNamegoCommand(const char* args) // all's well, set bg id // when porting out from the bg, it will be reset to 0 chr->SetBattleGroundId(m_session->GetPlayer()->GetBattleGroundId()); + // remember current position as entry point for return at bg end teleportation + chr->SetBattleGroundEntryPoint(chr->GetMapId(),chr->GetPositionX(),chr->GetPositionY(),chr->GetPositionZ(),chr->GetOrientation()); } else if(pMap->IsDungeon()) { @@ -900,6 +902,8 @@ bool ChatHandler::HandleGonameCommand(const char* args) // all's well, set bg id // when porting out from the bg, it will be reset to 0 _player->SetBattleGroundId(chr->GetBattleGroundId()); + // remember current position as entry point for return at bg end teleportation + _player->SetBattleGroundEntryPoint(_player->GetMapId(),_player->GetPositionX(),_player->GetPositionY(),_player->GetPositionZ(),_player->GetOrientation()); } else if(cMap->IsDungeon() && cMap->Instanceable()) { |