aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-08-19 09:57:46 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-08-19 09:57:46 +0100
commitf456ef0e5ac9559ba49560cada0e167b37cb396c (patch)
tree2e383f57c0f5179e2a1c9592b8bfdd092883c3b1 /src
parente6a6edc9fa6081f5fb17a72788a33e29cb103ae5 (diff)
downloadgold-mine-run-f456ef0e5ac9559ba49560cada0e167b37cb396c.tar.gz
gold-mine-run-f456ef0e5ac9559ba49560cada0e167b37cb396c.zip
Cosmetic fix when the game is started in the cast screen
Diffstat (limited to 'src')
-rw-r--r--src/menu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/menu.c b/src/menu.c
index d2de630..14cc4a5 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -90,6 +90,13 @@ uint8_t run_menu()
if (ctl & CTL_FIRE1)
{
+ if (cast)
+ {
+ cast = 0;
+ count = 0;
+ goto redraw_menu;
+ }
+
while (ctl & CTL_FIRE1)
{
ctl = control_read();
@@ -111,6 +118,7 @@ uint8_t run_menu()
/* change of screen, requires drawing */
if (count == 0)
{
+redraw_menu:
blit_target(TARGET_BUFFER);
blit_erase(0);