diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-02 21:35:08 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-02 21:35:08 +0100 |
commit | a225a6cf64b4c011fea851acb7dd424a1e957655 (patch) | |
tree | 5f73ff118a2c4e3ed8add95564afd65131c98226 /src/game.c | |
parent | a88810c8a70c8e3a7533a266774ab61a84a9adf4 (diff) | |
download | gold-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |