Skip to content

Commit 946ca8b

Browse files
committed
Update ODFC.cs
1 parent b9d7aed commit 946ca8b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Source/ODFC.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ private const float
5050
thresHoldSteps = 0.05f, // increment the rate by this amount (default is 5)
5151
thresholdMin = thresHoldSteps,
5252
thresHoldMax = 1;
53-
5453

54+
public Double fuelModeMaxECRateLimit = 0f;
5555
private Double
5656
lastGen = -1,
5757
lastMax = -1,
@@ -408,8 +408,9 @@ public override void OnFixedUpdate()
408408

409409
Double
410410
cfTime = TimeWarp.fixedDeltaTime,
411-
ECNeed = (Double)(maxAmount * threshold - amount),
412-
fuelModeMaxECRateLimit = ODFC_config.modes[fuelMode].maxEC * rateLimit;
411+
ECNeed = (Double)(maxAmount * threshold - amount);
412+
413+
fuelModeMaxECRateLimit = ODFC_config.modes[fuelMode].maxEC * rateLimit;
413414

414415
// add stall code
415416
if (HighLogic.CurrentGame.Parameters.CustomParams<ODFC_Options>().needsECtoStart && amount == 0f)

0 commit comments

Comments
 (0)