1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-17 11:56:46 +02:00

Cleaned some logs.

This commit is contained in:
DjWarmonger 2014-11-01 09:52:56 +01:00
parent b61b79b458
commit d280b0ac9f
3 changed files with 4 additions and 10 deletions

View File

@ -1796,7 +1796,6 @@ void CGameState::initTowns()
} }
} }
//init spells //init spells
logGlobal->debugStream() << "\t\tTown init spells";
vti->spells.resize(GameConstants::SPELL_LEVELS); vti->spells.resize(GameConstants::SPELL_LEVELS);
for(ui32 z=0; z<vti->obligatorySpells.size();z++) 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->spells[s->level-1].push_back(s->id);
vti->possibleSpells -= s->id; vti->possibleSpells -= s->id;
} }
logGlobal->debugStream() << "\t\tTown init spells2";
while(vti->possibleSpells.size()) while(vti->possibleSpells.size())
{ {
ui32 total=0; ui32 total=0;
@ -1837,7 +1835,6 @@ void CGameState::initTowns()
vti->possibleSpells.clear(); vti->possibleSpells.clear();
if(vti->getOwner() != PlayerColor::NEUTRAL) if(vti->getOwner() != PlayerColor::NEUTRAL)
getPlayer(vti->getOwner())->towns.push_back(vti); getPlayer(vti->getOwner())->towns.push_back(vti);
logGlobal->debugStream() << "\t\tTown init spells3";
} }
} }

View File

@ -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) 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); townType = *RandomGeneratorUtil::nextItem(townTypes, gen->rand);
else else
townType = *RandomGeneratorUtil::nextItem(getDefaultTownTypes(), gen->rand); //it is possible to have zone with no towns allowed 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 else //no player
@ -1170,18 +1169,16 @@ bool CRmgTemplateZone::placeMines (CMapGenerator* gen)
bool CRmgTemplateZone::createRequiredObjects(CMapGenerator* gen) bool CRmgTemplateZone::createRequiredObjects(CMapGenerator* gen)
{ {
logGlobal->infoStream() << "Creating required objects"; logGlobal->traceStream() << "Creating required objects";
for(const auto &obj : requiredObjects) for(const auto &obj : requiredObjects)
{ {
int3 pos; int3 pos;
logGlobal->traceStream() << "Looking for place";
if ( ! findPlaceForObject(gen, obj.first, 3, pos)) if ( ! findPlaceForObject(gen, obj.first, 3, pos))
{ {
logGlobal->errorStream() << boost::format("Failed to fill zone %d due to lack of space") %id; logGlobal->errorStream() << boost::format("Failed to fill zone %d due to lack of space") %id;
//TODO CLEANUP! //TODO CLEANUP!
return false; return false;
} }
logGlobal->traceStream() << "Place found";
placeObject (gen, obj.first, pos); placeObject (gen, obj.first, pos);
guardObject (gen, obj.first, obj.second, (obj.first->ID == Obj::MONOLITH_TWO_WAY), true); guardObject (gen, obj.first, obj.second, (obj.first->ID == Obj::MONOLITH_TWO_WAY), true);
@ -1252,7 +1249,7 @@ void CRmgTemplateZone::createObstacles(CMapGenerator* gen)
freeTiles++; 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 #define MAKE_COOL_UNDERGROUND_TUNNELS false

View File

@ -232,7 +232,7 @@ void CZonePlacer::placeZones(const CMapGenOptions * mapGenOptions, CRandomGenera
for (auto zone : zones) //finalize zone positions for (auto zone : zones) //finalize zone positions
{ {
zone.second->setPos(cords(zone.second->getCenter())); 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();
} }
} }