From a225a6cf64b4c011fea851acb7dd424a1e957655 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 2 Jul 2023 21:35:08 +0100 Subject: Don't play sound if is game over already This may happen id there's a pending time hud update. --- src/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game.c') 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); } -- cgit v1.2.3