-
Notifications
You must be signed in to change notification settings - Fork 84
[GEN][ZH] Do not pause Replay playback on CRC mismatch if a Game Window has input focus #1294
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
[GEN][ZH] Do not pause Replay playback on CRC mismatch if a Game Window has input focus #1294
Conversation
Does this mean the game won't pause on mismatch when we are playing back a replay while watching it? |
Bool pauseInput = FALSE; | ||
TheGameLogic->setGamePaused(pause, pauseMusic, pauseInput); | ||
// But not when a window with focus is opened, because that can make resuming difficult. | ||
if (TheWindowManager->winGetFocus() == NULL) |
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.
This would mean that the replay never pauses (if there's a window in focus), even though people probably rely on that with a mismatch.
Maybe put the m_crcInfo->setSawCRCMismatch();
at least in this branch? That way the game will pause as soon as the window closes (may be done with scripts).
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.
Ok. Tested and worked. Will spam mismatch message every 100 frames until pausing.
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.
That's fine I think as long as it's very unlikely to happen, which seems to be case.
Only if there is a Window that has focus. There typically is none. I tested with the Diplomacy Screen opened and even then the Replay paused. |
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.
Looks ok.
Thank you for taking the time for this replacement PR.
This change is an alternative fix to #1209. It prevents the pausing on Replay playback CRC mismatch if there is an active Game Window that has focus and eventually blocks input.