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

Pause all other sounds during a cutscene #649

Merged
2 commits merged into from
Oct 26, 2018
Merged

Conversation

qkolj
Copy link
Contributor

@qkolj qkolj commented Oct 22, 2018

Fixes #583
I tested only the cutscene on the first mission (Luigi's Girls), but it should work for any other.

@ghost
Copy link

ghost commented Oct 22, 2018

Thanks for contribution. ^^ I'll review and test it tomorrow.

@@ -881,7 +883,11 @@ void GameWorld::clearTickData() {

void GameWorld::setPaused(bool pause) {
paused = pause;
sound.pause(pause);
if (!pause && !isCutsceneDone()) {
Copy link

Choose a reason for hiding this comment

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

It's hard to understand the purpose of this condition, I'd extract and name it. (For example resumingCutscene)

@ghost
Copy link

ghost commented Oct 25, 2018

Thanks. Tested, works fine.

Todo: later verify if original also stops sfx generated by 018d and background. (Don't have windows to check. :( )

Copy link
Contributor

@dracc dracc left a comment

Choose a reason for hiding this comment

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

Looks good to me. I have not compared behaviour with the original game, but code looks like it ought to work.

@ghost ghost merged commit c2b55a0 into rwengine:master Oct 26, 2018
This pull request was closed.
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.

2 participants