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 World Cleanup and Refactor as System Param #143

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

zicklag
Copy link
Member

@zicklag zicklag commented Jul 25, 2022

Fixes #131

@zicklag zicklag requested review from odecay and 64kramsystem July 25, 2022 20:12
Copy link
Member

@64kramsystem 64kramsystem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -211,7 +213,6 @@ fn main() {
.add_startup_system(set_audio_channels_volume)
.add_enter_system(GameState::InGame, play_level_music)
.add_exit_system(GameState::InGame, stop_level_music)
.add_exit_system(GameState::InGame, clean_in_game_data)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the change which basically prevents cleanup from happening everytime GameState::InGame exits? This is the fix and the rest is mostly just cleanup correct?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this is the fix.

The rest of the code just makes the logic re-usable.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool let's get it in

@zicklag
Copy link
Member Author

zicklag commented Jul 25, 2022

bors merge

@bors
Copy link
Contributor

bors bot commented Jul 25, 2022

Build succeeded:

@bors bors bot merged commit 4e64c9a into fishfolk:master Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exiting Pause menu behaves unexpectedly
3 participants