mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Fixed issue which created large empty areas on two-level maps.
This commit is contained in:
@@ -387,6 +387,8 @@ void CRmgTemplateZone::initFreeTiles (CMapGenerator* gen)
|
||||
{
|
||||
return gen->isPossible(tile);
|
||||
});
|
||||
if (freePaths.empty())
|
||||
freePaths.insert(pos); //zone must have at least one free tile where other paths go - for instance in the center
|
||||
}
|
||||
|
||||
void CRmgTemplateZone::createBorder(CMapGenerator* gen)
|
||||
|
Reference in New Issue
Block a user