mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Made rejoining popup only show up once per rejoin
This commit is contained in:
parent
683839013b
commit
dcd1bc7aa8
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,6 @@ void network_receive_kick(struct Packet* p) {
|
||||||
case EKT_FULL_PARTY: djui_popup_create(DLANG(NOTIF, DISCONNECT_FULL), 1); break;
|
case EKT_FULL_PARTY: djui_popup_create(DLANG(NOTIF, DISCONNECT_FULL), 1); break;
|
||||||
case EKT_KICKED: djui_popup_create(DLANG(NOTIF, DISCONNECT_KICK), 1); break;
|
case EKT_KICKED: djui_popup_create(DLANG(NOTIF, DISCONNECT_KICK), 1); break;
|
||||||
case EKT_BANNED: djui_popup_create(DLANG(NOTIF, DISCONNECT_BAN), 1); break;
|
case EKT_BANNED: djui_popup_create(DLANG(NOTIF, DISCONNECT_BAN), 1); break;
|
||||||
case EKT_REJOIN: djui_popup_create(DLANG(NOTIF, DISCONNECT_REJOIN), 1); break;
|
|
||||||
default: djui_popup_create(DLANG(NOTIF, DISCONNECT_CLOSED), 1); break;
|
default: djui_popup_create(DLANG(NOTIF, DISCONNECT_CLOSED), 1); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,6 +42,7 @@ void network_receive_kick(struct Packet* p) {
|
||||||
if ((now - lastReconnectTime) > 3) {
|
if ((now - lastReconnectTime) > 3) {
|
||||||
lastReconnectTime = now;
|
lastReconnectTime = now;
|
||||||
network_reconnect_begin();
|
network_reconnect_begin();
|
||||||
|
djui_popup_create(DLANG(NOTIF, DISCONNECT_REJOIN), 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
network_shutdown(false, false, false);
|
network_shutdown(false, false, false);
|
||||||
|
|
Loading…
Reference in a new issue