Implement running the game in the background on the pause screen. Fix some bugs.

This commit is contained in:
Henrik Rydgård committed 2023-12-11 12:41:44 +01:00
1 parent 9f01661774
commit e8f70594a4
25 files changed
+123 -120

No files matched your search

-4
View File
@@ -302,10 +302,6 @@ void BackgroundAudio::SetGame(const Path &path) {
}
bool BackgroundAudio::Play() {
if (GetUIState() == UISTATE_INGAME) {
return false;
}
std::lock_guard<std::mutex> lock(mutex_);
// Immediately stop the sound if it is turned off while playing.