mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8270] Fixed problem with Alt+F4 in instances.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
0513e5cf06
commit
46c314814c
2 changed files with 6 additions and 3 deletions
|
|
@ -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());
|
_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
|
//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?
|
//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)
|
for (int i=0; i < PLAYER_MAX_BATTLEGROUND_QUEUES; ++i)
|
||||||
{
|
{
|
||||||
if(BattleGroundQueueTypeId bgQueueTypeId = _player->GetBattleGroundQueueTypeId(i))
|
if(BattleGroundQueueTypeId bgQueueTypeId = _player->GetBattleGroundQueueTypeId(i))
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8269"
|
#define REVISION_NR "8270"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue