diff options
author | robinsch <robinsch@users.noreply.github.com> | 2022-02-27 02:52:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 02:52:00 +0100 |
commit | e898b6e7942971a9bc96af54737ee971b99073a8 (patch) | |
tree | fc494fe7e0cb7236a00deeb57a8256d3d9d57770 | |
parent | 5518bfaa2a2526e54457eccd8d821177b6d5ca0d (diff) |
Tool/MMAP: Fixed invalid check causing certain tiles not to build (#27833)
example: mmaps_generator 230 will cause tile 33, 29 to not build because of the check. causing NPCs to not have mmap information in some parts of the map.
.go xyz 1380 -831 -88 230 has no mmap tile information because of above check.
https://i.imgur.com/Pypeu4f.png
-rw-r--r-- | src/tools/mmaps_generator/MapBuilder.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/mmaps_generator/MapBuilder.cpp b/src/tools/mmaps_generator/MapBuilder.cpp index 78b829a2138..4db988026c3 100644 --- a/src/tools/mmaps_generator/MapBuilder.cpp +++ b/src/tools/mmaps_generator/MapBuilder.cpp @@ -858,12 +858,10 @@ namespace MMAP //printf("%sNo vertices to build tile! \n", tileString); break; } - if (!params.polyCount || !params.polys || - TILES_PER_MAP*TILES_PER_MAP == params.polyCount) + if (!params.polyCount || !params.polys) { // we have flat tiles with no actual geometry - don't build those, its useless // keep in mind that we do output those into debug info - // drop tiles with only exact count - some tiles may have geometry while having less tiles printf("%s No polygons to build on tile! \n", tileString); break; } |