mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
remove setting values that are never read
This commit is contained in:
@ -205,8 +205,6 @@ BuildingInfo BuildAnalyzer::getBuildingOrPrerequisite(
|
|||||||
logAi->trace("checking %s", info.name);
|
logAi->trace("checking %s", info.name);
|
||||||
logAi->trace("buildInfo %s", info.toString());
|
logAi->trace("buildInfo %s", info.toString());
|
||||||
|
|
||||||
buildPtr = nullptr;
|
|
||||||
|
|
||||||
if(!town->hasBuilt(building))
|
if(!town->hasBuilt(building))
|
||||||
{
|
{
|
||||||
auto canBuild = ai->cb->canBuildStructure(town, building);
|
auto canBuild = ai->cb->canBuildStructure(town, building);
|
||||||
@ -239,8 +237,6 @@ BuildingInfo BuildAnalyzer::getBuildingOrPrerequisite(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buildPtr = townInfo->buildings.at(building);
|
|
||||||
|
|
||||||
logAi->trace("cant build. Need %d", missingBuildings[0].num);
|
logAi->trace("cant build. Need %d", missingBuildings[0].num);
|
||||||
|
|
||||||
BuildingInfo prerequisite = getBuildingOrPrerequisite(town, missingBuildings[0], excludeDwellingDependencies);
|
BuildingInfo prerequisite = getBuildingOrPrerequisite(town, missingBuildings[0], excludeDwellingDependencies);
|
||||||
|
@ -147,7 +147,6 @@ namespace AIPathfinding
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
destinationNode = questNode.get();
|
|
||||||
destination.node = questNode.get();
|
destination.node = questNode.get();
|
||||||
|
|
||||||
nodeStorage->commit(destination, source);
|
nodeStorage->commit(destination, source);
|
||||||
|
@ -1230,7 +1230,7 @@ void CCreatureHandler::loadStackExp(Bonus & b, BonusList & bl, CLegacyConfigPars
|
|||||||
{
|
{
|
||||||
if (b.type != Bonus::REBIRTH)
|
if (b.type != Bonus::REBIRTH)
|
||||||
b.val = 0; //on-off ability, no value specified
|
b.val = 0; //on-off ability, no value specified
|
||||||
curVal = static_cast<si32>(parser.readNumber());// 0 level is never active
|
parser.readNumber(); // 0 level is never active
|
||||||
for (int i = 1; i < 11; ++i)
|
for (int i = 1; i < 11; ++i)
|
||||||
{
|
{
|
||||||
curVal = static_cast<si32>(parser.readNumber());
|
curVal = static_cast<si32>(parser.readNumber());
|
||||||
|
@ -304,6 +304,7 @@ std::vector<BattleHex> CStack::meleeAttackHexes(const battle::Unit * attacker, c
|
|||||||
res.push_back(otherDefenderPos);
|
res.push_back(otherDefenderPos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
UNUSED(mask);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user