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

jfhs patch integration is now complete:

Lots of fixes for object placement.
Fixed blocked paths on generated maps.
This commit is contained in:
DjWarmonger
2014-05-23 19:14:20 +02:00
parent 4ea9810831
commit 35d6215b7b
3 changed files with 20 additions and 30 deletions

View File

@ -36,12 +36,15 @@ std::unique_ptr<CMap> CMapGenerator::generate()
addHeaderInfo();
genZones();
map->calculateGuardingGreaturePositions(); //clear map so that all tiles are unguarded
fillZones();
}
catch (rmgException &e)
{
logGlobal->infoStream() << "Random map generation received exception: " << e.what();
logGlobal->errorStream() << "Random map generation received exception: " << e.what();
}
map->calculateGuardingGreaturePositions(); //calculate once again when all the guards are placed
return std::move(map);
}