You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build a craft with a two-man command pod and a Hitchhiker (plus a lot of supplies and EC, or disable those). Put two (non-scout, if it matters) Kerbals in the pod and none in the Hitchhiker.
Put the craft in orbit and turn on the Hitchhiker's habitat module. Wait a decently long time (longer than the craft would be habitable without the module on, any more than 22 days should work).
Turn off the Hitchhiker's habitat module.
Expected result:
Each crew member's hab timer drops to ~22 days, the hab limit for the updated craft without the module active.
Actual result:
Only the first crew member's hab timer drops to that value, and everyone else instantly takes a homesickness effect when the craft's status refreshes.
This only updates TimeEnteredVessel for the first crew member in the for loop; after that, _isStatusRefreshRequired is false and nobody else's TimeEnteredVessel changes — meaning that each other crew member then looks at their timer and finds the second condition true:
Setup:
Expected result:
Each crew member's hab timer drops to ~22 days, the hab limit for the updated craft without the module active.
Actual result:
Only the first crew member's hab timer drops to that value, and everyone else instantly takes a homesickness effect when the craft's status refreshes.
Cause:
USI-LS/Source/USILifeSupport/ModuleLifeSupportSystem.cs
Lines 248 to 253 in c842b85
This only updates
TimeEnteredVessel
for the first crew member in thefor
loop; after that,_isStatusRefreshRequired
is false and nobody else'sTimeEnteredVessel
changes — meaning that each other crew member then looks at their timer and finds the second condition true:USI-LS/Source/USILifeSupport/ModuleLifeSupportSystem.cs
Line 717 in c842b85
Presumably
_isStatusRefreshRequired
should only be set to false after thefor
loop through the crew.The text was updated successfully, but these errors were encountered: