aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-10-02 18:43:09 +0200
committerShauren <shauren.trinity@gmail.com>2021-10-02 18:43:09 +0200
commit46004d4fcae6e00befd7d4bfacc0ffbf748edee4 (patch)
treea0778c4befde461522c0e6123f9387f2ed01a34d
parentf6aae06fc17942de9aeed70033d9d11d45b6ab1c (diff)
Core/Players: Relocate players to their homebind location instead of starting zone when login at saved location fails
-rw-r--r--src/server/game/Entities/Player/Player.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 8eb18fde4b1..9a038411471 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -18258,19 +18258,11 @@ bool Player::LoadFromDB(ObjectGuid guid, CharacterDatabaseQueryHolder* holder)
map = sMapMgr->CreateMap(mapId, this);
}
}
- else
- {
- TC_LOG_ERROR("entities.player", "Player::LoadFromDB: Player '%s' (%s) Map: %u, X: %f, Y: %f, Z: %f, O: %f. Areatrigger not found.",
- m_name.c_str(), guid.ToString().c_str(), mapId, GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation());
- RelocateToHomebind();
- map = nullptr;
- }
}
if (!map)
{
- mapId = info->mapId;
- Relocate(info->positionX, info->positionY, info->positionZ, 0.0f);
+ RelocateToHomebind();
map = sMapMgr->CreateMap(mapId, this);
if (!map)
{