mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Anoother unused variable
This commit is contained in:
parent
850da65f80
commit
db2be3ee05
@ -321,8 +321,6 @@ Goals::TGoalVec GatherArmyBehavior::upgradeArmy(const CGTownInstance * upgrader)
|
|||||||
upgrade.upgradeCost += armyToGetOrBuy.upgradeCost;
|
upgrade.upgradeCost += armyToGetOrBuy.upgradeCost;
|
||||||
vstd::concatenate(upgrade.resultingArmy, armyToGetOrBuy.resultingArmy);
|
vstd::concatenate(upgrade.resultingArmy, armyToGetOrBuy.resultingArmy);
|
||||||
|
|
||||||
auto getOrBuyArmyValue = (float)armyToGetOrBuy.upgradeValue / path.getHeroStrength();
|
|
||||||
|
|
||||||
if(!upgrade.upgradeValue
|
if(!upgrade.upgradeValue
|
||||||
&& armyToGetOrBuy.upgradeValue > 20000
|
&& armyToGetOrBuy.upgradeValue > 20000
|
||||||
&& ai->nullkiller->heroManager->canRecruitHero(town)
|
&& ai->nullkiller->heroManager->canRecruitHero(town)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user