From f456ef0e5ac9559ba49560cada0e167b37cb396c Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 19 Aug 2023 09:57:46 +0100 Subject: Cosmetic fix when the game is started in the cast screen --- src/menu.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- cgit v1.2.3