1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Fixed issue which created large empty areas on two-level maps.

This commit is contained in:
DjWarmonger 2015-02-25 19:34:02 +01:00
parent ef4e199f15
commit c5e772eb78

View File

@ -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)