aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-16 22:37:05 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-16 22:37:05 +0100
commitda4ab66aa33add78cbd721f0130d716af3f33590 (patch)
tree7aa0339b902c0c6f048cf7efc57d3432e93bd534 /src/game.c
parent4d536592c8fd70f1c2e009dc6bea4c098078cc02 (diff)
downloadgold-mine-run-da4ab66aa33add78cbd721f0130d716af3f33590.tar.gz
gold-mine-run-da4ab66aa33add78cbd721f0130d716af3f33590.zip
Don't use magic numbers
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 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++;