mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +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