fix(Tool/MMAP): Fixed invalid check causing certain tiles not to build (#10841)

* fix(Tool/MMAP): Fixed invalid check causing certain tiles not to build

* cherry-pick commit (e898b6e794)

Co-Authored-By: robinsch <robinsch@users.noreply.github.com>

* Update MapDefines.h

Co-authored-by: robinsch <robinsch@users.noreply.github.com>
This commit is contained in:
Kitzunu
2022-04-01 22:34:46 +02:00
committed by GitHub
parent b2ccee4d28
commit b467d6c1cf

View File

@@ -805,12 +805,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;
}