From 101d6f6e8d8f2861a09b49ffd7c8f09bf64fd42e Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Thu, 25 Aug 2022 20:34:27 -0400 Subject: [PATCH] Prevent dialog from showing in main menu (#162) * Prevent dialog from showing in main menu * Scuttlebug fix --- src/game/level_update.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/level_update.c b/src/game/level_update.c index 033a5140..bb4bcf4f 100644 --- a/src/game/level_update.c +++ b/src/game/level_update.c @@ -1408,6 +1408,12 @@ void update_menu_level(void) { vec3f_set(gMarioState->pos, 666, -204, 5303); vec3f_set(gLakituState.curPos, 666, -204, 6803); gMarioState->faceAngle[1] = 0; + + // delete all scuttlebugs as they interfere with the main menu + o = find_object_with_behavior(bhvScuttlebug); + if (o != NULL) { + obj_mark_for_deletion(o); + } break; case LEVEL_LLL: vec3f_set(gMarioState->pos, -2376, 638, 956);