diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-16 22:37:05 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-16 22:37:05 +0100 |
commit | da4ab66aa33add78cbd721f0130d716af3f33590 (patch) | |
tree | 7aa0339b902c0c6f048cf7efc57d3432e93bd534 /src/game.c | |
parent | 4d536592c8fd70f1c2e009dc6bea4c098078cc02 (diff) | |
download | gold-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; |