From 70bdba83099bdf4031de05c6448b69e4dc3e4c8c Mon Sep 17 00:00:00 2001 From: Barbz Date: Thu, 20 Aug 2020 23:26:17 +0200 Subject: [PATCH] feat(Core/Command): Reenable .teleport name on offline player (#3175) - Reenable the possibility to .teleport name xxx $home even if the character is offline. --- src/server/scripts/Commands/cs_tele.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/scripts/Commands/cs_tele.cpp b/src/server/scripts/Commands/cs_tele.cpp index 50301cacc..0fc32d522 100644 --- a/src/server/scripts/Commands/cs_tele.cpp +++ b/src/server/scripts/Commands/cs_tele.cpp @@ -119,7 +119,6 @@ public: { if (target) target->TeleportTo(target->m_homebindMapId, target->m_homebindX, target->m_homebindY, target->m_homebindZ, target->GetOrientation()); - /* xinef: optimization, not needed function else { PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHAR_HOMEBIND); @@ -137,7 +136,7 @@ public: Player::SavePositionInDB(mapId, posX, posY, posZ, 0, zoneId, target_guid); } - }*/ + } return true; }