From ab413f1d0ce04ce82adf70e7cf3ae978f856225b Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 19 Sep 2013 06:32:47 +0000 Subject: [PATCH] small code cleanup from cppcheck --- source/glest_game/ai/ai_rule.cpp | 2 +- source/glest_game/menu/menu_state_custom_game.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/glest_game/ai/ai_rule.cpp b/source/glest_game/ai/ai_rule.cpp index 2ce73c5b..404398e7 100644 --- a/source/glest_game/ai/ai_rule.cpp +++ b/source/glest_game/ai/ai_rule.cpp @@ -855,7 +855,7 @@ void AiRuleProduce::produceGenericNew(const ProduceTask *pt) { //for each command const UnitType *ut= aiInterface->getMyUnit(i)->getType(); - bool produceIt= false; + //bool produceIt= false; for(int j = 0; j < ut->getCommandTypeCount(); ++j) { const CommandType *ct= ut->getCommandType(j); diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index 3aca20e7..6046630d 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -3417,11 +3417,11 @@ void MenuStateCustomGame::loadGameSettings(GameSettings *gameSettings,bool force if(gameSettings->getMap() != "") { // Check if client has different data, if so force a CRC refresh - bool forceRefresh = false; + //bool forceRefresh = false; if(checkNetworkPlayerDataSynch(true,false,false) == false && last_Forced_CheckedCRCMapName != gameSettings->getMap()) { lastCheckedCRCMapName = ""; - forceRefresh = true; + //forceRefresh = true; last_Forced_CheckedCRCMapName = gameSettings->getMap(); }