small code cleanup from cppcheck
This commit is contained in:
parent
970de758e4
commit
ab413f1d0c
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue