1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

- Fixed GCC warning

- Small refactoring
- Added RPM spec to SVN again (it's better to keep it there :) )
This commit is contained in:
beegee1
2013-08-19 18:20:11 +00:00
parent 5654fef901
commit a13d72b636
9 changed files with 116 additions and 31 deletions

View File

@@ -867,8 +867,8 @@ void CGameState::init(StartInfo * si)
CStopWatch sw;
// Gen map
CMapGenerator mapGen(*(scenarioOps->mapGenOptions), scenarioOps->seedToBeUsed);
map = mapGen.generate().release();
CMapGenerator mapGenerator;
map = mapGenerator.generate(scenarioOps->mapGenOptions.get(), scenarioOps->seedToBeUsed).release();
// Update starting options
for(int i = 0; i < map->players.size(); ++i)