diff --git a/client/CPreGame.cpp b/client/CPreGame.cpp index 7ae547fc9..700dbdc33 100644 --- a/client/CPreGame.cpp +++ b/client/CPreGame.cpp @@ -881,6 +881,9 @@ void CSelectionScreen::startScenario() if(sInfo.mapGenOptions) { + //copy settings from interface to actual options. TODO: refactor, it used to have no effect at all -.- + sInfo.mapGenOptions = std::shared_ptr(new CMapGenOptions(randMapTab->getMapGenOptions())); + // Update player settings for RMG for(const auto & psetPair : sInfo.playerInfos) { diff --git a/lib/rmg/CMapGenOptions.cpp b/lib/rmg/CMapGenOptions.cpp index da4fec057..b202d98ef 100644 --- a/lib/rmg/CMapGenOptions.cpp +++ b/lib/rmg/CMapGenOptions.cpp @@ -177,6 +177,9 @@ const std::map & CMapGenOptions::getAvailableTempla void CMapGenOptions::finalize(CRandomGenerator & rand) { + logGlobal->infoStream() << boost::format ("RMG settings: players %d, teams %d, computer players %d, computer teams %d, water %d, monsters %d") + % playerCount % teamCount % compOnlyPlayerCount % compOnlyTeamCount % waterContent % monsterStrength; + if(!mapTemplate) { mapTemplate = getPossibleTemplate(rand);