1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Place towns and monoliths first - preferably at the zone border.

This commit is contained in:
Tomasz Zieliński
2023-03-29 16:25:13 +02:00
parent 045942fd68
commit 5ed3c2d518
2 changed files with 11 additions and 3 deletions

View File

@ -236,8 +236,7 @@ rmg::Path ObjectManager::placeAndConnectObject(const rmg::Area & searchArea, rmg
bool ObjectManager::createRequiredObjects()
{
logGlobal->trace("Creating required objects");
RandomGeneratorUtil::randomShuffle(requiredObjects, generator.rand);
for(const auto & object : requiredObjects)
{
auto * obj = object.first;