Core/Unit: Remove unused code as for 4.3.4

By Girip_Dragos
This commit is contained in:
Aokromes committed 2016-10-09 15:46:41 +02:00
1 parent 5a9ae7eae6
commit 42e74822b8
1 file changed
-4
-4
View File
@@ -5329,10 +5329,6 @@ 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;
}
}