From e898b6e7942971a9bc96af54737ee971b99073a8 Mon Sep 17 00:00:00 2001 From: robinsch Date: Sun, 27 Feb 2022 02:52:00 +0100 Subject: 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 --- src/tools/mmaps_generator/MapBuilder.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3