[8270] Fixed problem with Alt+F4 in instances.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
fgenesis 2009-07-23 18:31:35 +02:00 committed by ApoC
parent 0513e5cf06
commit 46c314814c
2 changed files with 6 additions and 3 deletions

View file

@ -311,10 +311,13 @@ void WorldSession::LogoutPlayer(bool Save)
_player->TeleportTo(_player->m_homebindMapId, _player->m_homebindX, _player->m_homebindY, _player->m_homebindZ, _player->GetOrientation());
//this is a bad place to call for far teleport because we need player to be in world for successful logout
//maybe we should implement delayed far teleport logout?
while(_player->IsBeingTeleportedFar())
HandleMoveWorldportAckOpcode();
}
// FG: finish pending transfers after starting the logout
// this should fix players beeing able to logout and login back with full hp at death position
while(_player->IsBeingTeleportedFar())
HandleMoveWorldportAckOpcode();
for (int i=0; i < PLAYER_MAX_BATTLEGROUND_QUEUES; ++i)
{
if(BattleGroundQueueTypeId bgQueueTypeId = _player->GetBattleGroundQueueTypeId(i))

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8269"
#define REVISION_NR "8270"
#endif // __REVISION_NR_H__