mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[11017] Finaly restore non-crashing non-in-world logout.
For example at close client with far teleport loading screen.
This commit is contained in:
parent
805d62bef1
commit
784c0ca781
6 changed files with 21 additions and 17 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue