Skip to content

Comments

Do not reset lab state when going to options#7226

Merged
wookieejedi merged 1 commit intoscp-fs2open:masterfrom
MjnMixael:lab_options_keep_state
Feb 19, 2026
Merged

Do not reset lab state when going to options#7226
wookieejedi merged 1 commit intoscp-fs2open:masterfrom
MjnMixael:lab_options_keep_state

Conversation

@MjnMixael
Copy link
Contributor

Fixes #3530 by simply not calling lab reset when going to Options and back.

There's no normal game path that gets around returning to the Lab from Options or any of its child states. If someone uses scripting to do game state shenanigans and jumps around and then we return to the Lab from the mainhall or some other call the worst-case scenario is the Lab resumes that previous state again, so this should be pretty safe.

@wookieejedi wookieejedi added cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions. Lab A feature or bug related to the F3 lab labels Feb 15, 2026
@wookieejedi
Copy link
Member

Will merge this evening

@wookieejedi wookieejedi merged commit 125377f into scp-fs2open:master Feb 19, 2026
20 checks passed
@MjnMixael MjnMixael deleted the lab_options_keep_state branch February 19, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions. Lab A feature or bug related to the F3 lab

Projects

None yet

Development

Successfully merging this pull request may close these issues.

F3 lab is reset after going to options menu

2 participants