Fix shadow reset
This commit is contained in:
parent
c950c0a5fb
commit
e757f91c3c
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue