Fix disconnect key crash
This commit is contained in:
parent
229dd6c1e7
commit
7ba65e7799
|
@ -118,7 +118,7 @@ void discord_activity_update(void) {
|
|||
} else if (gNetworkType == NT_SERVER) {
|
||||
strcpy(sCurActivity.state, "Waiting for players...");
|
||||
} else {
|
||||
strcpy(sCurActivity.state, "In-game.");
|
||||
strcpy(sCurActivity.state, "In the menus.");
|
||||
sCurActivity.party.size.current_size = 1;
|
||||
if (sCurActivity.party.size.max_size < 1) { sCurActivity.party.size.max_size = 1; }
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ void djui_panel_pause_quit_yes(UNUSED struct DjuiBase* caller) {
|
|||
}
|
||||
|
||||
void djui_panel_pause_disconnect_key_update(int scancode) {
|
||||
if (gDjuiInMainMenu) { return; }
|
||||
if (gDjuiInMainMenu || find_object_with_behavior(bhvActSelector) != NULL) { return; }
|
||||
|
||||
for (int i = 0; i < MAX_BINDS; i++) {
|
||||
if (scancode == (int)configKeyDisconnect[i]) {
|
||||
|
|
Loading…
Reference in New Issue