summary refs log tree commit diff stats
path: root/src/game.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-21 13:02:11 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-21 13:02:11 -0400
commit61aa4f941e67cf45833f1e12fe25428b3f283f74 (patch)
tree36728b116c68c26f9841a56773a80ede77120b62 /src/game.cpp
parent766a559d50149fac90cf3d5dac1490b8316fb943 (diff)
downloadether-61aa4f941e67cf45833f1e12fe25428b3f283f74.tar.gz
ether-61aa4f941e67cf45833f1e12fe25428b3f283f74.tar.bz2
ether-61aa4f941e67cf45833f1e12fe25428b3f283f74.zip
game can be muted now
not re-rendering the menu overlay because it looks fine tbh
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 7 insertions, 1 deletions
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)
668 muxer.setMusicLevel(0); 668 muxer.setMusicLevel(0);
669 } else if (zoomLevel < 3) { 669 } else if (zoomLevel < 3) {
670 muxer.setMusicLevel(1); 670 muxer.setMusicLevel(1);
671 } else if (zoomLevel < 5) { 671 } else if (zoomLevel < 4) {
672 muxer.setMusicLevel(2); 672 muxer.setMusicLevel(2);
673 } else if (zoomLevel < 6) { 673 } else if (zoomLevel < 6) {
674 muxer.setMusicLevel(3); 674 muxer.setMusicLevel(3);
@@ -796,6 +796,12 @@ void Game::updatePlaying(size_t frameTime) {
796 796
797 break; 797 break;
798 } 798 }
799
800 case SDLK_m:
801 {
802 muxer.toggleMute();
803 break;
804 }
799 } 805 }
800 } 806 }
801 } 807 }