mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 18:39:45 +01:00
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.
This commit is contained in:
parent
197c7caf08
commit
841bfb7eae
1 changed files with 1 additions and 1 deletions
|
@ -541,7 +541,7 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
Mix_Volume(-1,MIX_MAX_VOLUME);
|
Mix_Volume(-1,MIX_MAX_VOLUME);
|
||||||
|
|
||||||
if (game.musicmuted)
|
if (game.musicmuted || game.completestop)
|
||||||
{
|
{
|
||||||
Mix_VolumeMusic(0);
|
Mix_VolumeMusic(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue