mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
describe roads placement in log
This commit is contained in:
@ -1488,6 +1488,8 @@ void CRmgTemplateZone::drawRoads(CMapGenerator* gen)
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
logGlobal->debug("Started building roads");
|
||||||
|
|
||||||
while(!roadNodes.empty())
|
while(!roadNodes.empty())
|
||||||
{
|
{
|
||||||
int3 node = *roadNodes.begin();
|
int3 node = *roadNodes.begin();
|
||||||
@ -1496,15 +1498,17 @@ void CRmgTemplateZone::drawRoads(CMapGenerator* gen)
|
|||||||
{
|
{
|
||||||
//start road network
|
//start road network
|
||||||
roads.insert(node);
|
roads.insert(node);
|
||||||
|
logGlobal->debugStream() << "First node of road network: " << node;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
int3 cross = *RandomGeneratorUtil::nextItem(roads, gen->rand);
|
int3 cross = *RandomGeneratorUtil::nextItem(roads, gen->rand);
|
||||||
|
logGlobal->debugStream() << "Building road from " << node << " to " << cross;
|
||||||
crunchRoad(gen, node, cross, &freePaths);
|
crunchRoad(gen, node, cross, &freePaths);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logGlobal->debug("Finished building roads");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CRmgTemplateZone::buildRoads(CMapGenerator* gen)
|
void CRmgTemplateZone::buildRoads(CMapGenerator* gen)
|
||||||
|
Reference in New Issue
Block a user