From 37528b7ee81591fcc1a5f44badc354fa8db38f20 Mon Sep 17 00:00:00 2001 From: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com> Date: Tue, 14 May 2024 23:02:27 +1000 Subject: [PATCH] fix flashbang while pause entering a level (#45) --- src/game/level_update.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/level_update.c b/src/game/level_update.c index 3f096e60..25815080 100644 --- a/src/game/level_update.c +++ b/src/game/level_update.c @@ -795,7 +795,10 @@ static void initiate_painting_warp_node(struct WarpNode *pWarpNode) { initiate_warp(warpNode.destLevel & 0x7F, warpNode.destArea, warpNode.destNode, 0); check_if_should_set_warp_checkpoint(&warpNode); - play_transition_after_delay(WARP_TRANSITION_FADE_INTO_COLOR, 30, 255, 255, 255, 45); + extern s16 gMenuMode; + if (gMenuMode == -1) { + play_transition_after_delay(WARP_TRANSITION_FADE_INTO_COLOR, 30, 255, 255, 255, 45); + } level_set_transition(74, basic_update); play_sound(SOUND_MENU_STAR_SOUND, gGlobalSoundSource);