From 38a4f4e09cfba4c59e99a72fccc59ac36bb8d5ae Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 5 Jul 2023 07:36:20 +0100 Subject: Fix time bonus calculation It was overflowing and showint 255 as time. --- src/game.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game.c b/src/game.c index 101a053..ba6ee85 100644 --- a/src/game.c +++ b/src/game.c @@ -130,9 +130,10 @@ static void run_stageclear() /* wait some time */ wait_frames(96); - while (time--) + while (time) { add_score(25); + time--; hud |= HUD_TIME; sound_queue_efx(EFX_GOLD); hud_render(); -- cgit v1.2.3