Core/Player: Remove unused Player method TeleportOutOfMap

This commit is contained in:
Shocker
2011-12-10 20:29:23 +02:00
parent d4921e0f25
commit 196159dbcf
2 changed files with 0 additions and 25 deletions
@@ -2052,28 +2052,6 @@ void Player::SendTeleportAckPacket()
GetSession()->SendPacket(&data);
}
// this is not used anywhere
void Player::TeleportOutOfMap(Map* oldMap)
{
while (IsBeingTeleportedFar())
GetSession()->HandleMoveWorldportAckOpcode();
if (GetMap() != oldMap)
return;
TeleportTo(m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, GetOrientation());
while (IsBeingTeleportedFar())
GetSession()->HandleMoveWorldportAckOpcode();
if (GetMap() == oldMap)
{
sLog->outCrash("Cannot teleport player out of map!");
ResetMap();
ASSERT(false);
}
}
bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options)
{
if (!MapManager::IsValidMapCoord(mapid, x, y, z, orientation))
-3
View File
@@ -1091,13 +1091,10 @@ class Player : public Unit, public GridObject<Player>
void RemoveFromWorld();
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options = 0);
void TeleportOutOfMap(Map* oldMap);
bool TeleportTo(WorldLocation const &loc, uint32 options = 0)
{
return TeleportTo(loc.GetMapId(), loc.GetPositionX(), loc.GetPositionY(), loc.GetPositionZ(), loc.GetOrientation(), options);
}
bool TeleportToBGEntryPoint();
void SetSummonPoint(uint32 mapid, float x, float y, float z)