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

Extract updatePauseState from Game::run #13893

Merged
merged 4 commits into from
Oct 18, 2023

Conversation

JosiahWI
Copy link
Contributor

This seeks to improve the readability of Game::run by extracting some of the behavior into a function. The inspiration for the refactor came from the beautiful chart in #13879 showing the high-level overview of the logic flow in Game::run.

To do

Ready for Review.

How to test

Confirm that in multiplayer the game keeps running in the background when the main menu is open, and that in singleplayer the game stops running in the background when the main menu is open. "stops running" should mean the animation stops, and the sound stops.

This seeks to improve the readability of Game::run by extracting some of
the behavior into a function. The inspiration for the refactor came from
the beautiful chart in minetest#13879 showing the high-level overview of the
logic flow in Game::run.
@Zughy Zughy added Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements Code quality @ Engine Core What happens inside the very engine and removed Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements labels Oct 16, 2023
src/client/game.cpp Show resolved Hide resolved
src/client/game.cpp Outdated Show resolved Hide resolved
Co-authored-by: sfan5 <sfan5@live.de>
src/client/game.cpp Show resolved Hide resolved
@JosiahWI
Copy link
Contributor Author

Thanks for catching the inconsistency before it was merged, @Desour!

@JosiahWI JosiahWI requested a review from Desour October 18, 2023 16:08
src/client/game.cpp Outdated Show resolved Hide resolved
@grorp grorp merged commit 62eb6cf into minetest:master Oct 18, 2023
13 checks passed
@JosiahWI JosiahWI deleted the refactor/game-run branch October 18, 2023 18:20
kawogi pushed a commit to kawogi/minetest that referenced this pull request Dec 19, 2023
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.

None yet

6 participants