summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index cd1a8c2..1805357 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -419,8 +419,12 @@ void setZoom(Game& game, size_t zoom)
419 game.muxer.setMusicLevel(0); 419 game.muxer.setMusicLevel(0);
420 } else if (zoomLevel < 3) { 420 } else if (zoomLevel < 3) {
421 game.muxer.setMusicLevel(1); 421 game.muxer.setMusicLevel(1);
422 } else { 422 } else if (zoomLevel < 5) {
423 game.muxer.setMusicLevel(2); 423 game.muxer.setMusicLevel(2);
424 } else if (zoomLevel < 7) {
425 game.muxer.setMusicLevel(3);
426 } else {
427 game.muxer.setMusicLevel(4);
424 } 428 }
425} 429}
426 430
@@ -493,6 +497,7 @@ int main(int, char**)
493 quit = true; 497 quit = true;
494 } else { 498 } else {
495 losing = LoseState::PoppingLamps; 499 losing = LoseState::PoppingLamps;
500 game.muxer.stopMusic();
496 } 501 }
497 } else if (e.type == SDL_KEYDOWN) 502 } else if (e.type == SDL_KEYDOWN)
498 { 503 {
@@ -505,6 +510,7 @@ int main(int, char**)
505 quit = true; 510 quit = true;
506 } else { 511 } else {
507 losing = LoseState::PoppingLamps; 512 losing = LoseState::PoppingLamps;
513 game.muxer.stopMusic();
508 } 514 }
509 515
510 break; 516 break;