From 2016ee1b60ba8162c564c521abcaa458f912a773 Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 19 Apr 2020 13:19:44 -0700 Subject: [PATCH] Use an 'else' instead of re-checking 'game.muted' again Makes the code easier to read and parse. --- desktop_version/src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index 0ef847ac..73589672 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -531,8 +531,7 @@ int main(int argc, char *argv[]) Mix_VolumeMusic(0) ; Mix_Volume(-1,0); } - - if (!game.muted) + else { Mix_Volume(-1,MIX_MAX_VOLUME);