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

Fixes atmos processing race condition #11447

Conversation

PowerfulBacon
Copy link
Member

@PowerfulBacon PowerfulBacon commented Sep 8, 2024

About The Pull Request

Atmos demands that a machine starts processing on /New(), however this can cause it to start processing prior to its atmos being initialised. If a template is loaded post-roundstart then this has the potential to cause runtimes, which was the case for shuttles being loaded in the unit tests.

Why It's Good For The Game

This should correct unit tests and fix some erronous behaviours.

Testing Photographs and Procedure

Check to make sure atmos machines are still functioning as intended when mapped:

image

Check to make sure atmos machines are still functioning as intended when on shuttles:

image

Check to make sure atmos machines are still functioning as intended when constructed:

image

Changelog

🆑
fix: Fixes race condition in atmos processing which results in unit tests failing due to shuttles loading post-roundstart.
/:cl:

@PowerfulBacon PowerfulBacon marked this pull request as ready for review September 8, 2024 09:58
@PowerfulBacon PowerfulBacon added this pull request to the merge queue Sep 8, 2024
Merged via the queue into BeeStation:master with commit 355742a Sep 8, 2024
21 checks passed
@PowerfulBacon PowerfulBacon deleted the Fixes-shuttle-atmos-race-condition branch September 8, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants