feat(Core/Command): Reenable .teleport name on offline player (#3175)

- Reenable the possibility to .teleport name xxx $home even if the character is offline.
This commit is contained in:
Barbz
2020-08-20 23:26:17 +02:00
committed by GitHub
parent 73d725312d
commit 70bdba8309

View File

@@ -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;
}