diff options
| author | Subv <subv2112@gmail.com> | 2013-12-29 18:48:18 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2013-12-29 18:48:18 -0500 |
| commit | 1011376b951b97d15fed2855cfcfc069a6a4b9b1 (patch) | |
| tree | 0476a1f8a0046147e3eba15c59d732f5289dd3aa /src | |
| parent | 55936274e9cdf3d985588ecbae1c9845a1a9705e (diff) | |
Ignore the build on some test maps.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/mesh_extractor/MeshExtractor.cpp | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/tools/mesh_extractor/MeshExtractor.cpp b/src/tools/mesh_extractor/MeshExtractor.cpp index e0991d7942f..1f123a6452c 100644 --- a/src/tools/mesh_extractor/MeshExtractor.cpp +++ b/src/tools/mesh_extractor/MeshExtractor.cpp @@ -34,6 +34,28 @@ MPQManager* MPQHandler; CacheClass* Cache; +bool IgnoreMap(uint32 id) +{ + switch (id) + { + case 13: // test.wdt + case 25: // ScottTest.wdt + case 29: // Test.wdt + case 42: // Colin.wdt + case 169: // EmeraldDream.wdt (unused, and very large) + case 451: // development.wdt + case 573: // ExteriorTest.wdt + case 597: // CraigTest.wdt + case 605: // development_nonweighted.wdt + case 606: // QA_DVD.wdt + return true; + default: + break; + } + + return false; +} + void ExtractMMaps(std::set<uint32>& mapIds, uint32 threads) { std::string basePath = "mmaps/"; @@ -45,8 +67,8 @@ void ExtractMMaps(std::set<uint32>& mapIds, uint32 threads) { uint32 mapId = (*itr)->Values[0]; - // Skip this map if a list of specific maps was provided and this one is not contained in it. - if (!mapIds.empty() && mapIds.find(mapId) == mapIds.end()) + // Skip this map if a list of specific maps was provided and this one is not contained in it, or if the map is in the ignore list. + if ((!mapIds.empty() && mapIds.find(mapId) == mapIds.end()) || IgnoreMap(mapId)) { if (Constants::Debug) printf("Map %u will not be built.\n", mapId); |
