[11017] Finaly restore non-crashing non-in-world logout.

For example at close client with far teleport loading screen.
This commit is contained in:
VladimirMangos 2011-01-16 19:57:53 +03:00
parent 805d62bef1
commit 784c0ca781
6 changed files with 21 additions and 17 deletions

View file

@ -81,6 +81,8 @@ void WorldSession::HandleMoveWorldportAckOpcode()
" (map:%u, x:%f, y:%f, z:%f) Trying to port him to his previous place..",
GetPlayer()->GetGuidStr().c_str(), loc.mapid, loc.coord_x, loc.coord_y, loc.coord_z);
GetPlayer()->SetSemaphoreTeleportFar(false);
// Teleport to previous place, if cannot be ported back TP to homebind place
if (!GetPlayer()->TeleportTo(old_loc))
{