From da4ab66aa33add78cbd721f0130d716af3f33590 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 16 Jul 2023 22:37:05 +0100 Subject: Don't use magic numbers --- src/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game.c b/src/game.c index 70de080..8cf60a7 100644 --- a/src/game.c +++ b/src/game.c @@ -390,7 +390,7 @@ void add_score(uint8_t v) if (extra_life >= GAME_EXTRA_LIFE) { extra_life -= GAME_EXTRA_LIFE; - if (lives < 9) + if (lives < GAME_LIVES_MAX) { sound_play_efx(EFX_ONEUP); lives++; -- cgit v1.2.3