-
Notifications
You must be signed in to change notification settings - Fork 171
Make Object Selection window modal in play mode #3370
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
base: master
Are you sure you want to change the base?
Conversation
And pause the game while it is open, using the same pause flag as browsePrompt window. Fixes OpenLoco#2914 Fixes OpenLoco#3179 Fixes OpenLoco#3369
It appears that it was unnecessary.
As like PromptBrowseWindow (when opened via Game.cpp)
|
Known issue: if, with music enabled, you pause the game and then open the object selection window, the music will erroneously resume upon closing the object selection window despite the game still being paused. This is the same issue as #3183. |
| { | ||
| WindowManager::setCurrentModalType(WindowType::objectSelection); | ||
|
|
||
| SceneManager::setPauseFlag(1 << 3); // Pause flag 3 was not used by vanilla. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reasoning for pausing the game while this window is open? This isn't necessary for the window to be modal, right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it is the source of the bugs
And pause the game while it is open.
Fixes #2914
Fixes #3179
Fixes #3369