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:
parent
ef4e199f15
commit
c5e772eb78
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user