Remove any lingering dialog boxes on level transition

Fixes #22
This commit is contained in:
MysterD 2020-09-04 21:27:06 -07:00
parent 33c79c40a0
commit ff45ad5f45
2 changed files with 3 additions and 7 deletions

View File

@ -1198,6 +1198,7 @@ s32 update_level(void) {
}
s32 init_level(void) {
reset_dialog_render_state();
network_on_init_level();
s32 val4 = 0;

View File

@ -2,6 +2,7 @@
#include "../network.h"
#include "src/game/level_update.h"
#include "src/game/area.h"
#include "src/game/ingame_menu.h"
#include "sm64.h"
int matchCount = 0;
@ -18,13 +19,7 @@ void network_send_level_warp(void) {
}
static void force_well_behaved_state(void) {
/*
gDialogBoxState = DIALOG_STATE_OPENING;
gCourseDoneMenuTimer = 0;
gCourseCompleteCoins = 0;
gCourseCompleteCoinsEqual = 0;
gHudFlash = 0;
*/
reset_dialog_render_state();
level_set_transition(0, 0);
gMenuMode = -1;
gPauseScreenMode = 1;