mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Cleaned some logs.
This commit is contained in:
parent
b61b79b458
commit
d280b0ac9f
@ -1796,7 +1796,6 @@ void CGameState::initTowns()
|
||||
}
|
||||
}
|
||||
//init spells
|
||||
logGlobal->debugStream() << "\t\tTown init spells";
|
||||
vti->spells.resize(GameConstants::SPELL_LEVELS);
|
||||
|
||||
for(ui32 z=0; z<vti->obligatorySpells.size();z++)
|
||||
@ -1805,7 +1804,6 @@ void CGameState::initTowns()
|
||||
vti->spells[s->level-1].push_back(s->id);
|
||||
vti->possibleSpells -= s->id;
|
||||
}
|
||||
logGlobal->debugStream() << "\t\tTown init spells2";
|
||||
while(vti->possibleSpells.size())
|
||||
{
|
||||
ui32 total=0;
|
||||
@ -1837,7 +1835,6 @@ void CGameState::initTowns()
|
||||
vti->possibleSpells.clear();
|
||||
if(vti->getOwner() != PlayerColor::NEUTRAL)
|
||||
getPlayer(vti->getOwner())->towns.push_back(vti);
|
||||
logGlobal->debugStream() << "\t\tTown init spells3";
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -510,7 +510,7 @@ void CRmgTemplateZone::fractalize(CMapGenerator* gen)
|
||||
}
|
||||
}
|
||||
|
||||
logGlobal->infoStream() << boost::format ("Zone %d subdivided fractally") %id;
|
||||
//logGlobal->infoStream() << boost::format ("Zone %d subdivided fractally") %id;
|
||||
}
|
||||
|
||||
bool CRmgTemplateZone::crunchPath (CMapGenerator* gen, const int3 &src, const int3 &dst, TRmgTemplateZoneId zone, std::set<int3>* clearedTiles)
|
||||
@ -1053,7 +1053,6 @@ void CRmgTemplateZone::initTownType (CMapGenerator* gen)
|
||||
townType = *RandomGeneratorUtil::nextItem(townTypes, gen->rand);
|
||||
else
|
||||
townType = *RandomGeneratorUtil::nextItem(getDefaultTownTypes(), gen->rand); //it is possible to have zone with no towns allowed
|
||||
logGlobal->infoStream() << "Skipping this zone cause no player";
|
||||
}
|
||||
}
|
||||
else //no player
|
||||
@ -1170,18 +1169,16 @@ bool CRmgTemplateZone::placeMines (CMapGenerator* gen)
|
||||
|
||||
bool CRmgTemplateZone::createRequiredObjects(CMapGenerator* gen)
|
||||
{
|
||||
logGlobal->infoStream() << "Creating required objects";
|
||||
logGlobal->traceStream() << "Creating required objects";
|
||||
for(const auto &obj : requiredObjects)
|
||||
{
|
||||
int3 pos;
|
||||
logGlobal->traceStream() << "Looking for place";
|
||||
if ( ! findPlaceForObject(gen, obj.first, 3, pos))
|
||||
{
|
||||
logGlobal->errorStream() << boost::format("Failed to fill zone %d due to lack of space") %id;
|
||||
//TODO CLEANUP!
|
||||
return false;
|
||||
}
|
||||
logGlobal->traceStream() << "Place found";
|
||||
|
||||
placeObject (gen, obj.first, pos);
|
||||
guardObject (gen, obj.first, obj.second, (obj.first->ID == Obj::MONOLITH_TWO_WAY), true);
|
||||
@ -1252,7 +1249,7 @@ void CRmgTemplateZone::createObstacles(CMapGenerator* gen)
|
||||
freeTiles++;
|
||||
}
|
||||
}
|
||||
logGlobal->infoStream() << boost::format("Set %d tiles to BLOCKED and %d tiles to FREE") % blockedTiles % freeTiles;
|
||||
logGlobal->traceStream() << boost::format("Set %d tiles to BLOCKED and %d tiles to FREE") % blockedTiles % freeTiles;
|
||||
}
|
||||
|
||||
#define MAKE_COOL_UNDERGROUND_TUNNELS false
|
||||
|
@ -232,7 +232,7 @@ void CZonePlacer::placeZones(const CMapGenOptions * mapGenOptions, CRandomGenera
|
||||
for (auto zone : zones) //finalize zone positions
|
||||
{
|
||||
zone.second->setPos(cords(zone.second->getCenter()));
|
||||
logGlobal->infoStream() << boost::format ("Placed zone %d at relative position %s and coordinates %s") % zone.first % zone.second->getCenter() % zone.second->getPos();
|
||||
logGlobal->traceStream() << boost::format ("Placed zone %d at relative position %s and coordinates %s") % zone.first % zone.second->getCenter() % zone.second->getPos();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user