Skip to content

Commit

Permalink
Always recalculate seed in prelaunch
Browse files Browse the repository at this point in the history
  • Loading branch information
siimav committed Jan 29, 2024
1 parent d244cb0 commit 506afb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Engines/ModuleEnginesRF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ public override void Start()
}
else
{
if (partSeed == -1)
// Revert To Launch will use a state that is captured after the random got seeded
if (partSeed == -1 || vessel?.situation == Vessel.Situations.PRELAUNCH)
{
// using egg's formula here that ensures a gradual climb from 0, 0.5 as median (e^(0-ln(2)) == 0.5), and a very thin tail past 1.0
// Due to the exponent, this will never go below 0 so we needn't chop off variance in that direction.
Expand Down

0 comments on commit 506afb3

Please sign in to comment.