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 e898b6e794)
This commit is contained in:
robinsch
2022-02-27 02:52:00 +01:00
committed by Shauren
parent 700df874b9
commit 364796dc3b

View File

@@ -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;
}