Revert "Core/Unit: Remove unused code as for 4.3.4"

This reverts commit 42e74822b8.
This commit is contained in:
Aokromes committed 2016-10-21 07:26:23 +02:00
1 parent 16813bdb8c
commit 06fff9a83f
1 file changed
+4
+4
View File
@@ -5329,6 +5329,10 @@ void Unit::setPowerType(Powers new_powertype)
case POWER_ENERGY:
SetMaxPower(POWER_ENERGY, uint32(std::ceil(GetCreatePowers(POWER_ENERGY) * powerMultiplier)));
break;
case POWER_HAPPINESS:
SetMaxPower(POWER_HAPPINESS, uint32(std::ceil(GetCreatePowers(POWER_HAPPINESS) * powerMultiplier)));
SetPower(POWER_HAPPINESS, uint32(std::ceil(GetCreatePowers(POWER_HAPPINESS) * powerMultiplier)));
break;
}
}