From 841bfb7eae94a1a34b324c721971ff44efebabf5 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 24 Apr 2020 20:42:04 -0700 Subject: [PATCH] Fix music not being silent during trinket/crewmate collect Looks like I forgot to test that my music silencing patch didn't break the music being silent during the "You have found a shiny trinket" and "You have found a shiny crewmate" text boxes. So I've added a check for game.completestop in the music handling in main.cpp. Found this bug while I was testing my towerlogic/gamelogic merge patch. --- desktop_version/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index d23bbb29..31961fe8 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -541,7 +541,7 @@ int main(int argc, char *argv[]) { Mix_Volume(-1,MIX_MAX_VOLUME); - if (game.musicmuted) + if (game.musicmuted || game.completestop) { Mix_VolumeMusic(0); }