From 2ce319014758bd3d6248635ab3f62594b77cc462 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 17 Jun 2023 21:40:56 +0100 Subject: Stage is zero based Also missing include. --- 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 54f9fca..bde5036 100644 --- a/src/game.c +++ b/src/game.c @@ -6,6 +6,7 @@ #include "text.h" #include "map.h" #include "data.h" +#include "timer.h" #include "game.h" @@ -57,7 +58,7 @@ void hud_render() if (hud & HUD_STAGE) { - sprintf(b, "%02d", stage); + sprintf(b, "%02d", stage + 1); put_text(297, 4, b); } -- cgit v1.2.3