fix flashbang while pause entering a level (#45)

This commit is contained in:
Isaac0-dev 2024-05-14 23:02:27 +10:00 committed by GitHub
parent 2f5b0c4880
commit 37528b7ee8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);