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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user