mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
Fix being able to join direct connection lobbies past max players
This commit is contained in:
parent
270244d02d
commit
ef43b197d0
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ void network_send_join(struct Packet* joinRequestPacket) {
|
||||||
u8 globalIndex = joinRequestPacket->localIndex;
|
u8 globalIndex = joinRequestPacket->localIndex;
|
||||||
if (globalIndex == UNKNOWN_LOCAL_INDEX) {
|
if (globalIndex == UNKNOWN_LOCAL_INDEX) {
|
||||||
for (u32 i = 1; i < MAX_PLAYERS; i++) {
|
for (u32 i = 1; i < MAX_PLAYERS; i++) {
|
||||||
|
if (i >= gServerSettings.maxPlayers) { break; }
|
||||||
if (!gNetworkPlayers[i].connected) {
|
if (!gNetworkPlayers[i].connected) {
|
||||||
globalIndex = i;
|
globalIndex = i;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue