Clear controller values on disconnect

This commit is contained in:
MysterD 2022-05-28 00:22:13 -07:00
parent 15de1d5609
commit aed0d4cb3a

View file

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