[7255] Allows saving characters in Battle Grounds.

* Now player can join to BG after logout during 5 minutes, if BG in progress.
* All players after server crash or restart should appear at the battlemaster

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
GriffonHeart 2009-02-09 16:07:16 +03:00 committed by VladimirMangos
parent 8af53064eb
commit 75121a5823
11 changed files with 162 additions and 52 deletions

View file

@ -303,10 +303,6 @@ void WorldSession::LogoutPlayer(bool Save)
_player->RepopAtGraveyard();
}
///- Remove player from battleground (teleport to entrance)
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());