*Update to Mangos 6973.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-29 12:22:49 -06:00
parent bf8c7b928f
commit 35ce5ca6ba
9 changed files with 27 additions and 12 deletions

View File

@@ -310,6 +310,10 @@ void WorldSession::LogoutPlayer(bool Save)
if(_player->InBattleGround())
_player->LeaveBattleground();
///- Teleport to home if the player is in an invalid instance
if(!_player->m_InstanceValid && !_player->isGameMaster())
_player->TeleportTo(_player->m_homebindMapId, _player->m_homebindX, _player->m_homebindY, _player->m_homebindZ, _player->GetOrientation());
sOutdoorPvPMgr.HandlePlayerLeaveZone(_player,_player->GetZoneId());
for (int i=0; i < PLAYER_MAX_BATTLEGROUND_QUEUES; i++)