Skip to content

Commit

Permalink
Fixed problem with Alt+F4 in instances.
Browse files Browse the repository at this point in the history
Signed-off-by: ApoC <apoc@nymfe.net>

(based on commit c2cf2c1)
  • Loading branch information
fgenesis authored and VladimirMangos committed Mar 16, 2010
1 parent f5158df commit 8eb70ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/game/WorldSession.cpp
Expand Up @@ -366,10 +366,13 @@ void WorldSession::LogoutPlayer(bool Save)
_player->TeleportToHomebind();
//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(int32 bgTypeId = _player->GetBattleGroundQueueId(i))
Expand Down

0 comments on commit 8eb70ef

Please sign in to comment.