1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Cleaning logs.

This commit is contained in:
DjWarmonger 2014-12-25 12:58:15 +01:00
parent 51495381ef
commit 5b8180e327
4 changed files with 4 additions and 5 deletions

View File

@ -263,7 +263,7 @@ float FuzzyHelper::getTacticalAdvantage (const CArmedInstance *we, const CArmedI
{ {
logAi->errorStream() << "getTacticalAdvantage " << ": " << fe.getWhat(); logAi->errorStream() << "getTacticalAdvantage " << ": " << fe.getWhat();
} }
logAi->traceStream() << "getTacticalAdvantage output: " << output;
if (output < 0 || (output != output)) if (output < 0 || (output != output))
{ {
fl::InputVariable* tab[] = {ta.bankPresent, ta.castleWalls, ta.ourWalkers, ta.ourShooters, ta.ourFlyers, ta.ourSpeed, ta.enemyWalkers, ta.enemyShooters, ta.enemyFlyers, ta.enemySpeed}; fl::InputVariable* tab[] = {ta.bankPresent, ta.castleWalls, ta.ourWalkers, ta.ourShooters, ta.ourFlyers, ta.ourSpeed, ta.enemyWalkers, ta.enemyShooters, ta.enemyFlyers, ta.enemySpeed};

View File

@ -1847,7 +1847,7 @@ void CGameState::initMapObjects()
{ {
if(obj) if(obj)
{ {
logGlobal->traceStream() << boost::format ("Calling Init for object %d, %d") % obj->ID % obj->subID; //logGlobal->traceStream() << boost::format ("Calling Init for object %d, %d") % obj->ID % obj->subID;
obj->initObj(); obj->initObj();
} }
} }

View File

@ -2203,7 +2203,7 @@ void CGameHandler::sendAndApply( NewStructures * info )
void CGameHandler::save(const std::string & filename ) void CGameHandler::save(const std::string & filename )
{ {
logGlobal->errorStream() << "Saving to " << filename; logGlobal->infoStream() << "Saving to " << filename;
CFileInfo info(filename); CFileInfo info(filename);
//CResourceHandler::get("local")->createResource(info.getStem() + ".vlgm1"); //CResourceHandler::get("local")->createResource(info.getStem() + ".vlgm1");
CResourceHandler::get("local")->createResource(info.getStem() + ".vsgm1"); CResourceHandler::get("local")->createResource(info.getStem() + ".vsgm1");

View File

@ -46,9 +46,8 @@ CGameState* CPackForServer::GS(CGameHandler *gh)
bool SaveGame::applyGh( CGameHandler *gh ) bool SaveGame::applyGh( CGameHandler *gh )
{ {
//gh->sendMessageTo(*c,"Saving...");
gh->save(fname); gh->save(fname);
gh->sendMessageTo(*c,"Game has been saved as " + fname); logGlobal->infoStream() << "Game has been saved as " + fname;
return true; return true;
} }