aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-17 21:40:56 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-17 21:40:56 +0100
commit2ce319014758bd3d6248635ab3f62594b77cc462 (patch)
treee48a21b4a3b467174427a927760970ec2e9b46fe
parentfcd110f5fcf58c7402d44eae516ee33e5df71deb (diff)
downloadgold-mine-run-2ce319014758bd3d6248635ab3f62594b77cc462.tar.gz
gold-mine-run-2ce319014758bd3d6248635ab3f62594b77cc462.zip
Stage is zero based
Also missing include.
-rw-r--r--src/game.c3
1 files changed, 2 insertions, 1 deletions
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);
}