mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9824] Use in taxi flight movegen original taxipath data.
This commit is contained in:
parent
c52e9c5d27
commit
57dcc84940
15 changed files with 149 additions and 146 deletions
|
|
@ -5219,26 +5219,6 @@ uint32 ObjectMgr::GetTaxiMountDisplayId( uint32 id, uint32 team, bool allowed_al
|
|||
return mount_id;
|
||||
}
|
||||
|
||||
void ObjectMgr::GetTaxiPathNodes( uint32 path, Path &pathnodes, std::vector<uint32>& mapIds)
|
||||
{
|
||||
if(path >= sTaxiPathNodesByPath.size())
|
||||
return;
|
||||
|
||||
TaxiPathNodeList& nodeList = sTaxiPathNodesByPath[path];
|
||||
|
||||
pathnodes.Resize(nodeList.size());
|
||||
mapIds.resize(nodeList.size());
|
||||
|
||||
for(size_t i = 0; i < nodeList.size(); ++i)
|
||||
{
|
||||
pathnodes[ i ].x = nodeList[i]->x;
|
||||
pathnodes[ i ].y = nodeList[i]->y;
|
||||
pathnodes[ i ].z = nodeList[i]->z;
|
||||
|
||||
mapIds[i] = nodeList[i]->mapid;
|
||||
}
|
||||
}
|
||||
|
||||
void ObjectMgr::LoadGraveyardZones()
|
||||
{
|
||||
mGraveYardMap.clear(); // need for reload case
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue