From 5b8180e327366baa45c3f0f64880095eab53c141 Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Thu, 25 Dec 2014 12:58:15 +0100 Subject: [PATCH] Cleaning logs. --- AI/VCAI/Fuzzy.cpp | 2 +- lib/CGameState.cpp | 2 +- server/CGameHandler.cpp | 2 +- server/NetPacksServer.cpp | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/AI/VCAI/Fuzzy.cpp b/AI/VCAI/Fuzzy.cpp index bfb7012d6..d205e1153 100644 --- a/AI/VCAI/Fuzzy.cpp +++ b/AI/VCAI/Fuzzy.cpp @@ -263,7 +263,7 @@ float FuzzyHelper::getTacticalAdvantage (const CArmedInstance *we, const CArmedI { logAi->errorStream() << "getTacticalAdvantage " << ": " << fe.getWhat(); } - logAi->traceStream() << "getTacticalAdvantage 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}; diff --git a/lib/CGameState.cpp b/lib/CGameState.cpp index 89802504d..666b8477f 100644 --- a/lib/CGameState.cpp +++ b/lib/CGameState.cpp @@ -1847,7 +1847,7 @@ void CGameState::initMapObjects() { 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(); } } diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 184f7bbca..bd4f56826 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -2203,7 +2203,7 @@ void CGameHandler::sendAndApply( NewStructures * info ) void CGameHandler::save(const std::string & filename ) { - logGlobal->errorStream() << "Saving to " << filename; + logGlobal->infoStream() << "Saving to " << filename; CFileInfo info(filename); //CResourceHandler::get("local")->createResource(info.getStem() + ".vlgm1"); CResourceHandler::get("local")->createResource(info.getStem() + ".vsgm1"); diff --git a/server/NetPacksServer.cpp b/server/NetPacksServer.cpp index fa4daf394..7f925f727 100644 --- a/server/NetPacksServer.cpp +++ b/server/NetPacksServer.cpp @@ -46,9 +46,8 @@ CGameState* CPackForServer::GS(CGameHandler *gh) bool SaveGame::applyGh( CGameHandler *gh ) { - //gh->sendMessageTo(*c,"Saving..."); gh->save(fname); - gh->sendMessageTo(*c,"Game has been saved as " + fname); + logGlobal->infoStream() << "Game has been saved as " + fname; return true; }