mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user