Clear controller values on disconnect
This commit is contained in:
parent
f5d69402a9
commit
8a02578315
|
@ -472,6 +472,7 @@ void network_shutdown(bool sendLeaving, bool exiting) {
|
|||
extern s16 gChangeLevel;
|
||||
gChangeLevel = LEVEL_CASTLE_GROUNDS;
|
||||
network_player_init();
|
||||
memset(gMarioStates[0].controller, 0, sizeof(struct Controller));
|
||||
|
||||
extern s16 gMenuMode;
|
||||
gMenuMode = -1;
|
||||
|
|
Loading…
Reference in New Issue