Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to stop title music when unchecked
- Loading branch information
1 parent
c657846
commit 52907a2
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -863,6 +863,10 @@ namespace OpenLoco::Ui::Windows::Options | |
{ | ||
Audio::playMusic(Environment::PathId::css5, Config::get().old.volume, true); | ||
} | ||
else | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
niceeffort
Author
Contributor
|
||
{ | ||
Audio::stopMusic(); | ||
} | ||
|
||
w->invalidate(); | ||
} | ||
|
1 comment
on commit 52907a2
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 is a fix for issue #1763
This needs another check to verify we're not in-game. Wouldn't want the checkbox to stop unrelated music! :)
We could also just bail out of this function early if
!isTitleScreen()
. Just have to move thew->invalidate()
call, in that case.