aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-02 21:35:08 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-02 21:35:08 +0100
commita225a6cf64b4c011fea851acb7dd424a1e957655 (patch)
tree5f73ff118a2c4e3ed8add95564afd65131c98226 /src/game.c
parenta88810c8a70c8e3a7533a266774ab61a84a9adf4 (diff)
downloadgold-mine-run-a225a6cf64b4c011fea851acb7dd424a1e957655.tar.gz
gold-mine-run-a225a6cf64b4c011fea851acb7dd424a1e957655.zip
Don't play sound if is game over already
This may happen id there's a pending time hud update.
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index 60a986a..da476dd 100644
--- a/src/game.c
+++ b/src/game.c
@@ -86,7 +86,7 @@ static void hud_render()
{
sprintf(b, "%02d", time);
put_text(172, 4, b, time > 10 ? 1 : 15);
- if (time <= 10)
+ if (!gameover && time <= 10)
sound_play_efx(EFX_TIME);
}