From 61aa4f941e67cf45833f1e12fe25428b3f283f74 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 21 Mar 2022 13:02:11 -0400 Subject: game can be muted now not re-rendering the menu overlay because it looks fine tbh --- src/game.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index acccbc6..d63c208 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -668,7 +668,7 @@ void Game::setZoom(size_t zoom) muxer.setMusicLevel(0); } else if (zoomLevel < 3) { muxer.setMusicLevel(1); - } else if (zoomLevel < 5) { + } else if (zoomLevel < 4) { muxer.setMusicLevel(2); } else if (zoomLevel < 6) { muxer.setMusicLevel(3); @@ -796,6 +796,12 @@ void Game::updatePlaying(size_t frameTime) { break; } + + case SDLK_m: + { + muxer.toggleMute(); + break; + } } } } -- cgit 1.4.1