diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-10-25 00:52:55 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-10-25 00:52:55 +0200 |
| commit | 96b567995a36bee5de0ffa1f18fac6ba93f39bed (patch) | |
| tree | de525c3e96be31f25269e4a8bf6f08d1a65d7238 /src/tools | |
| parent | 81a1a5585132257972fe527bb2f7d9b672cc0422 (diff) | |
Core/Vmaps: Remove VMapManager2 virtual interface
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/mmaps_generator/TerrainBuilder.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/tools/mmaps_generator/TerrainBuilder.cpp b/src/tools/mmaps_generator/TerrainBuilder.cpp index a2a542ed095..6894021ea90 100644 --- a/src/tools/mmaps_generator/TerrainBuilder.cpp +++ b/src/tools/mmaps_generator/TerrainBuilder.cpp @@ -589,23 +589,12 @@ namespace MMAP if (result != VMAP::LoadResult::Success) break; - VMAP::InstanceTreeMap instanceTrees; - vmapManager->getInstanceMapTree(instanceTrees); - - if (!instanceTrees[mapID]) + std::span<VMAP::ModelInstance const> models = vmapManager->getModelsOnMap(mapID); + if (models.empty()) break; - VMAP::ModelInstance* models = nullptr; - uint32 count = 0; - instanceTrees[mapID]->getModelInstances(models, count); - - if (!models) - break; - - for (uint32 i = 0; i < count; ++i) + for (VMAP::ModelInstance const& instance : models) { - VMAP::ModelInstance const& instance = models[i]; - // model instances exist in tree even though there are instances of that model in this tile VMAP::WorldModel const* worldModel = instance.getWorldModel(); if (!worldModel) |
