aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index 9ef3019..c77a3c6 100644
--- a/src/game.c
+++ b/src/game.c
@@ -426,10 +426,11 @@ void game_pause(Game *game) {
if ( game->paused ) {
game->paused = 0;
- game->tlast = SDL_GetTicks();
+ audio_unpause(game->audio);
game->pause_rel = 0;
} else {
game->paused = 1;
+ audio_pause(game->audio);
game->pause_rel = 0;
}