1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-29 00:41:38 +02:00

- Added terrain & object selection classes - Added CComposedOperation - Refactored clear terrain, it is now an operation - Added rough support for updating terrain type if required

This commit is contained in:
beegee1
2013-04-29 15:51:39 +00:00
parent b20f8fd3d4
commit 3358a8efec
5 changed files with 417 additions and 97 deletions

View File

@ -26,6 +26,7 @@
#include "filesystem/CResourceLoader.h"
#include "GameConstants.h"
#include "rmg/CMapGenerator.h"
#include "CStopWatch.h"
DLL_LINKAGE boost::rand48 ran;
class CGObjectInstance;
@ -864,6 +865,7 @@ void CGameState::init(StartInfo * si)
if(scenarioOps->createRandomMap)
{
logGlobal->infoStream() << "Create random map.";
CStopWatch sw;
// Create player settings for RMG
BOOST_FOREACH(const auto & pair, scenarioOps->playerInfos)
@ -902,6 +904,7 @@ void CGameState::init(StartInfo * si)
}
}
logGlobal->infoStream() << boost::format("Generated random map in %i ms.") % sw.getDiff();
}
else
{