diff options
author | robinsch <robinsch@users.noreply.github.com> | 2022-02-27 02:52:00 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-26 15:28:07 +0100 |
commit | 364796dc3b1aa5164a2093293fe52e0f93f1fb53 (patch) | |
tree | ab827ec64b2de5c7e39be3a32c3fddbe1aed9ab4 /src | |
parent | 700df874b95b4aa70f28f2c208c6bd005b5b5a5d (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
(cherry picked from commit e898b6e7942971a9bc96af54737ee971b99073a8)
Diffstat (limited to 'src')
-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 6e3142f2868..acd1a1097e4 100644 --- a/src/tools/mmaps_generator/MapBuilder.cpp +++ b/src/tools/mmaps_generator/MapBuilder.cpp @@ -860,12 +860,10 @@ namespace MMAP //printf("%sNo vertices to build tile! \n", tileString.c_str()); 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.c_str()); break; } |