From 3e1c7be361aff6803393b010bbb68bd7b2480ddb Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 12 Aug 2023 10:57:33 +0100 Subject: Update hiscore --- src/game.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index 67c6ffe..0acd9d9 100644 --- a/src/game.c +++ b/src/game.c @@ -599,6 +599,9 @@ void add_score(uint8_t v) score += v; extra_life += v; + if (score > hiscore) + hiscore = score; + if (extra_life >= GAME_EXTRA_LIFE) { extra_life -= GAME_EXTRA_LIFE; -- cgit v1.2.3