Core/Phases: Mmaps now use the swapped terrain's mmtiles for all units if available
- Needs more testing!
This commit is contained in:
1 parent
e7a248523a
commit
323f80c801
5 files changed
+244
-74
No files matched your search
@@ -42,8 +42,8 @@ PathGenerator::PathGenerator(const Unit* owner) :
|
||||
if (DisableMgr::IsPathfindingEnabled(mapId))
|
||||
{
|
||||
MMAP::MMapManager* mmap = MMAP::MMapFactory::createOrGetMMapManager();
|
||||
_navMesh = mmap->GetNavMesh(mapId);
|
||||
_navMeshQuery = mmap->GetNavMeshQuery(mapId, _sourceUnit->GetInstanceId());
|
||||
_navMesh = mmap->GetNavMesh(mapId, _sourceUnit->GetTerrainSwaps());
|
||||
_navMeshQuery = mmap->GetNavMeshQuery(mapId, _sourceUnit->GetInstanceId(), _sourceUnit->GetTerrainSwaps());
|
||||
}
|
||||
|
||||
CreateFilter();
|
||||
|
||||
Reference in new issue
Block a user