proper scene switch in demos

This commit is contained in:
veclav talica 2024-10-08 01:07:01 +03:00
parent fd642171a4
commit 78034b69f5
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ static void title_tick(State *state) {
if (input_is_action_just_pressed(&state->ctx->input, "ui_accept")) { if (input_is_action_just_pressed(&state->ctx->input, "ui_accept")) {
switch_to(state, ingame_scene); switch_to(state, ingame_scene);
return;
} }

View File

@ -13,6 +13,7 @@ static void title_tick(State *state) {
if (input_is_action_just_pressed(&state->ctx->input, "ui_accept")) { if (input_is_action_just_pressed(&state->ctx->input, "ui_accept")) {
switch_to(state, ingame_scene); switch_to(state, ingame_scene);
return;
} }