Fix shadow reset

This commit is contained in:
Agent X 2023-12-23 11:51:23 -05:00
parent c950c0a5fb
commit e757f91c3c
2 changed files with 4 additions and 3 deletions

View File

@ -1627,9 +1627,6 @@ void update_menu_level(void) {
gMarioState->controller->stickY = 0;
gMarioState->controller->stickMag = 0;
gMarioState->intendedMag = 0;
// reset shadow
gMarioState->marioObj->header.gfx.shadowInvisible = false;
gMarioState->marioObj->header.gfx.disableAutomaticShadowPos = false;
}
s32 update_level(void) {

View File

@ -707,6 +707,10 @@ void network_shutdown(bool sendLeaving, bool exiting, bool popup, bool reconnect
cnt->extStickX = 0;
cnt->extStickY = 0;
// reset shadow
gMarioStates[0].marioObj->header.gfx.shadowInvisible = false;
gMarioStates[0].marioObj->header.gfx.disableAutomaticShadowPos = false;
gFirstPersonCamera.enabled = false;
gFirstPersonCamera.fov = FIRST_PERSON_DEFAULT_FOV;
first_person_reset();