mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2026-04-27 15:20:48 -07:00
remove useless argument
This commit is contained in:
parent
bf05db20a1
commit
b22e3ff0ed
3 changed files with 4 additions and 5 deletions
|
|
@ -64,8 +64,7 @@ Map::~Map()
|
|||
}
|
||||
|
||||
Map::Map(uint32 id, uint32 InstanceId, uint8 SpawnMode, Map* _parent) :
|
||||
_mapGridManager(this), i_mapEntry(sMapStore.LookupEntry(id)),
|
||||
_mapCollisionData(*this, _parent, (sWorld->GetDataPath() + "vmaps").c_str()),
|
||||
_mapGridManager(this), i_mapEntry(sMapStore.LookupEntry(id)), _mapCollisionData(*this, _parent),
|
||||
i_spawnMode(SpawnMode), i_InstanceId(InstanceId), m_unloadTimer(0),
|
||||
m_VisibleDistance(DEFAULT_VISIBILITY_DISTANCE), _instanceResetPeriod(0),
|
||||
_transportsUpdateIter(_transports.end()), i_scriptLock(false), _defaultLight(GetDefaultMapLight(id))
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include <G3D/Vector3.h>
|
||||
|
||||
MapCollisionData::MapCollisionData(Map const& map, Map const* parentMap, std::string const& basePath) :
|
||||
MapCollisionData::MapCollisionData(Map const& map, Map const* parentMap) :
|
||||
_map(map), _staticVMapData(map.GetId())
|
||||
{
|
||||
if (parentMap)
|
||||
|
|
@ -41,7 +41,7 @@ MapCollisionData::MapCollisionData(Map const& map, Map const* parentMap, std::st
|
|||
{
|
||||
// If we are a base map create a new static tree and mmap nav mesh
|
||||
std::string const mapFileName = VMAP::VMapMgr2::getMapFileName(map.GetId());
|
||||
std::shared_ptr<VMAP::StaticMapTree> newTree = std::make_shared<VMAP::StaticMapTree>(map.GetId(), basePath);
|
||||
std::shared_ptr<VMAP::StaticMapTree> newTree = std::make_shared<VMAP::StaticMapTree>(map.GetId(), (sWorld->GetDataPath() + "vmaps"));
|
||||
if (newTree->InitMap(mapFileName))
|
||||
_staticVMapData._staticTree = newTree;
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ protected:
|
|||
class MapCollisionData
|
||||
{
|
||||
public:
|
||||
MapCollisionData(Map const& map, Map const* parentMap, std::string const& basePath);
|
||||
MapCollisionData(Map const& map, Map const* parentMap);
|
||||
~MapCollisionData() = default;
|
||||
|
||||
int LoadVMapTile(uint32 tileX, uint32 tileY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue