mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
For 0.97 release: generate full underground to avoid many issues
This commit is contained in:
parent
dd0033b5a4
commit
b61b79b458
@ -1255,7 +1255,8 @@ void CRmgTemplateZone::createObstacles(CMapGenerator* gen)
|
|||||||
logGlobal->infoStream() << boost::format("Set %d tiles to BLOCKED and %d tiles to FREE") % blockedTiles % freeTiles;
|
logGlobal->infoStream() << boost::format("Set %d tiles to BLOCKED and %d tiles to FREE") % blockedTiles % freeTiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pos.z) //underground
|
#define MAKE_COOL_UNDERGROUND_TUNNELS false
|
||||||
|
if (pos.z && MAKE_COOL_UNDERGROUND_TUNNELS) //underground
|
||||||
{
|
{
|
||||||
std::vector<int3> rockTiles;
|
std::vector<int3> rockTiles;
|
||||||
|
|
||||||
|
@ -313,9 +313,11 @@ void CZonePlacer::assignZones(const CMapGenOptions * mapGenOptions)
|
|||||||
zone.second->setPos (int3(total.x/size, total.y/size, total.z/size));
|
zone.second->setPos (int3(total.x/size, total.y/size, total.z/size));
|
||||||
|
|
||||||
//TODO: similiar for islands
|
//TODO: similiar for islands
|
||||||
|
#define CREATE_FULL_UNDERGROUND true //consider linking this with water amount
|
||||||
if (zone.second->getPos().z)
|
if (zone.second->getPos().z)
|
||||||
{
|
{
|
||||||
zone.second->discardDistantTiles(gen, zone.second->getSize() + 1);
|
if (!CREATE_FULL_UNDERGROUND)
|
||||||
|
zone.second->discardDistantTiles(gen, zone.second->getSize() + 1);
|
||||||
|
|
||||||
//make sure that terrain inside zone is not a rock
|
//make sure that terrain inside zone is not a rock
|
||||||
//FIXME: reorder actions?
|
//FIXME: reorder actions?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user