Skip to content

Commit

Permalink
Fix throttling @svm420
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell committed Sep 9, 2015
1 parent 1b564fd commit 1a53117
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Engines/ModuleEngineConfigs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ virtual public void SetConfiguration(string newConfiguration = null, bool resetT
}
ConfigNode tNode = new ConfigNode("MODULE");
eiNode.CopyTo(tNode);
tNode.SetValue("name", "ModuleEngineIgnitor");
tNode.SetAddValue("name", "ModuleEngineIgnitor");
part.Modules["ModuleEngineIgnitor"].Load(tNode);
}
else // backwards compatible with EI nodes when using RF ullage etc.
Expand Down Expand Up @@ -896,13 +896,13 @@ virtual public void DoConfig(ConfigNode cfg)
// Now update the cfg from what we did.
// thrust updates
if(configMaxThrust >= 0f)
cfg.SetValue(thrustRating, configMaxThrust.ToString("0.0000"));
cfg.SetAddValue(thrustRating, configMaxThrust.ToString("0.0000"));
if(configMinThrust >= 0f)
cfg.SetValue("minThrust", configMinThrust.ToString("0.0000")); // will be ignored by RCS, so what.
cfg.SetAddValue("minThrust", configMinThrust.ToString("0.0000")); // will be ignored by RCS, so what.

// heat update
if(configHeat >= 0f)
cfg.SetValue("heatProduction", configHeat.ToString("0"));
cfg.SetAddValue("heatProduction", configHeat.ToString("0"));

// mass change
if (origMass > 0)
Expand Down

0 comments on commit 1a53117

Please sign in to comment.