Fixed Steering components never setting their currPowerConsumption field above zero, making them cause zero load on the electrical grid.

This commit is contained in:
Joonas Rikkonen
2018-01-01 15:00:12 +02:00
parent 99391f68b2
commit 79f3f04c3b
2 changed files with 7 additions and 4 deletions
@@ -98,7 +98,6 @@ namespace Barotrauma.Items.Components
: base(item, element)
{
IsActive = true;
InitProjSpecific();
}
@@ -128,8 +127,10 @@ namespace Barotrauma.Items.Components
unsentChanges = false;
}
}
if (voltage < minVoltage && powerConsumption > 0.0f) return;
currPowerConsumption = powerConsumption;
if (voltage < minVoltage && currPowerConsumption > 0.0f) return;
ApplyStatusEffects(ActionType.OnActive, deltaTime, null);