From 78034b69f51ee8e459b5118657493824d921e945 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 8 Oct 2024 01:07:01 +0300 Subject: [PATCH] proper scene switch in demos --- apps/platformer/scenes/title.c | 1 + apps/scenery/scenes/title.c | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/platformer/scenes/title.c b/apps/platformer/scenes/title.c index 1341d0d..92b3689 100644 --- a/apps/platformer/scenes/title.c +++ b/apps/platformer/scenes/title.c @@ -16,6 +16,7 @@ static void title_tick(State *state) { if (input_is_action_just_pressed(&state->ctx->input, "ui_accept")) { switch_to(state, ingame_scene); + return; } diff --git a/apps/scenery/scenes/title.c b/apps/scenery/scenes/title.c index 90e76af..90efd0b 100644 --- a/apps/scenery/scenes/title.c +++ b/apps/scenery/scenes/title.c @@ -13,6 +13,7 @@ static void title_tick(State *state) { if (input_is_action_just_pressed(&state->ctx->input, "ui_accept")) { switch_to(state, ingame_scene); + return; }