[8963] Make bindpoint field private and add required functions for use.

This commit is contained in:
VladimirMangos 2009-12-10 12:14:11 +03:00
parent 4a2dc2438c
commit ed7d561597
9 changed files with 31 additions and 21 deletions

View file

@ -55,7 +55,7 @@ void WorldSession::HandleMoveWorldportAckOpcode()
// stop teleportation else we would try this again and again in LogoutPlayer...
GetPlayer()->SetSemaphoreTeleportFar(false);
// and teleport the player to a valid place
GetPlayer()->TeleportTo(GetPlayer()->m_homebindMapId, GetPlayer()->m_homebindX, GetPlayer()->m_homebindY, GetPlayer()->m_homebindZ, GetPlayer()->GetOrientation());
GetPlayer()->TeleportToHomebind();
return;
}
@ -84,7 +84,7 @@ void WorldSession::HandleMoveWorldportAckOpcode()
sLog.outError("WorldSession::HandleMoveWorldportAckOpcode: player %s (%d) was teleported far but couldn't be added to map. (map:%u, x:%f, y:%f, "
"z:%f) We port him to his homebind instead..", GetPlayer()->GetName(), GetPlayer()->GetGUIDLow(), loc.mapid, loc.coord_x, loc.coord_y, loc.coord_z);
// teleport the player home
GetPlayer()->TeleportTo(GetPlayer()->m_homebindMapId, GetPlayer()->m_homebindX, GetPlayer()->m_homebindY, GetPlayer()->m_homebindZ, GetPlayer()->GetOrientation());
GetPlayer()->TeleportToHomebind();
return;
}