Skip to content

Commit 96f9e89

Browse files
committed
Fixed the wrong bug. Fixed correctly now
thrusterPower was being used correctly. fixedDeltaTime wasn't.
1 parent 233f906 commit 96f9e89

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

0 Bytes
Binary file not shown.

ModuleRCSFX/Readme_MRCSFX.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ SOURCE is https://github.com/NathanKell/ModuleRCSFX
4040

4141
CHANGELOG
4242
v4.1
43-
* Fix bug with fuel consumption and thrust (thrusterPower wasn't being applied right)
43+
* Fixed bug in thrust calculation (was 2% what it should be...)
4444
* When in fullThrust mode, don't switch to full thrust unless thrust ratio already starts out at fullThrustMin (configurable).
4545

4646
v4.0

Source/ModuleRCSFX.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ public override void OnStart(StartState state)
282282

283283
if (success)
284284
{
285-
thrustForce *= thrusterPower;
286285
curThrust += thrustForce;
287286
thrustForces.Add(thrustForce);
288287
if (!isJustForShow)
@@ -345,7 +344,7 @@ private void UpdatePropellantStatus()
345344
double propAvailable = 1.0d;
346345

347346
if (!CheatOptions.InfiniteRCS)
348-
propAvailable = RequestPropellant(massFlow * thrusterPower * TimeWarp.fixedDeltaTime);
347+
propAvailable = RequestPropellant(massFlow * TimeWarp.fixedDeltaTime);
349348

350349
totalForce = (float)(massFlow * exhaustVel * propAvailable);
351350

0 commit comments

Comments
 (0)