Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix temperature sim causing infinite processing #3596

Merged

Conversation

out-of-phaze
Copy link
Member

Description of changes

Adds a variable to subsystems, _internal_name, for better bookkeeping with is_processing. Without this, the conversion from variable name to is_processing is one-way and so we can't tell what subsystem it last queued on. Tracking this helps prevent an issue where trying to dequeue something from SSobjs would instead dequeue it from SStemperature or vice versa. Now, a processing subsystem will only set a dequeued datum's is_processing to null if it's equal to their _internal_name.

Why and what will this PR improve

Fixes lighters that run out of fuel spamming their extinguish message because their is_processing was set to null by temperature dequeueing.

Authorship

Me.

@out-of-phaze out-of-phaze added the ready for review This PR is ready for review and merge. label Jan 18, 2024
@MistakeNot4892 MistakeNot4892 added awaiting author This PR is awaiting action from the author before it can be merged. and removed ready for review This PR is ready for review and merge. labels Jan 19, 2024
@out-of-phaze out-of-phaze force-pushed the fix/temperature-deprocessing branch from bbd66b0 to 36a1d28 Compare January 19, 2024 15:57
Improve processing subsystem dequeueing
@out-of-phaze out-of-phaze force-pushed the fix/temperature-deprocessing branch from 36a1d28 to b9c5b0a Compare January 19, 2024 15:58
@MistakeNot4892 MistakeNot4892 added ready for review This PR is ready for review and merge. and removed awaiting author This PR is awaiting action from the author before it can be merged. labels Jan 19, 2024
@MistakeNot4892 MistakeNot4892 merged commit d70c25d into NebulaSS13:stable Jan 20, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review This PR is ready for review and merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants