small code cleanup from cppcheck

This commit is contained in:
Mark Vejvoda 2013-09-19 06:32:47 +00:00
parent 970de758e4
commit ab413f1d0c
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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();
}