mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Generated zones can now have different sizes depending on template.
This commit is contained in:
@ -436,7 +436,8 @@ void CZonePlacer::assignZones(const CMapGenOptions * mapGenOptions)
|
||||
|
||||
auto compareByDistance = [](const Dpair & lhs, const Dpair & rhs) -> bool
|
||||
{
|
||||
return lhs.second < rhs.second;
|
||||
//bigger zones have smaller distance
|
||||
return lhs.second / lhs.first->getSize() < rhs.second / rhs.first->getSize();
|
||||
};
|
||||
|
||||
auto moveZoneToCenterOfMass = [](CRmgTemplateZone * zone) -> void
|
||||
|
Reference in New Issue
Block a user