aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-08-05 09:26:16 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-08-05 12:56:00 +0100
commitc3eb0a2832f993b00a03f52b9a24cf728714daf1 (patch)
tree7361fda225d513dd90f5de4942a6b3b37e5b39a8 /src
parent2e80842ed08d6f11df2ab8118099a938d7e52f60 (diff)
downloadgold-mine-run-c3eb0a2832f993b00a03f52b9a24cf728714daf1.tar.gz
gold-mine-run-c3eb0a2832f993b00a03f52b9a24cf728714daf1.zip
Pause stops music
Diffstat (limited to 'src')
-rw-r--r--src/game.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 8f97a3b..35fc49c 100644
--- a/src/game.c
+++ b/src/game.c
@@ -336,9 +336,15 @@ next_stage:
wait_vsync();
if (pause)
+ {
timer_stop();
+ sound_mute();
+ }
else
+ {
timer_resume();
+ sound_unmute();
+ }
}
if (pause)