mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-12-02 11:11:31 +00:00
fix: support more max players
This commit is contained in:
1 parent
d017bfc30a
commit
771a632f05
13 files changed
+65
-37
No files matched your search
@@ -797,7 +797,7 @@ void WinsockNetLayer::UpdateAdvertisePlayerNames(BYTE count, const char playerNa
|
||||
EnterCriticalSection(&s_advertiseLock);
|
||||
memset(s_advertiseData.playerNames, 0, sizeof(s_advertiseData.playerNames));
|
||||
s_advertiseData.playerCount = count;
|
||||
for (int i = 0; i < count && i < 8; i++)
|
||||
for (int i = 0; i < count && i < WIN64_LAN_BROADCAST_PLAYERS; i++)
|
||||
{
|
||||
memcpy(s_advertiseData.playerNames[i], playerNames[i], XUSER_NAME_SIZE);
|
||||
}
|
||||
@@ -936,7 +936,7 @@ DWORD WINAPI WinsockNetLayer::DiscoveryThreadProc(LPVOID param)
|
||||
|
||||
broadcast->hostName[31] = L'\0';
|
||||
|
||||
for (int pn = 0; pn < 8; pn++)
|
||||
for (int pn = 0; pn < WIN64_LAN_BROADCAST_PLAYERS; pn++)
|
||||
broadcast->playerNames[pn][XUSER_NAME_SIZE - 1] = '\0';
|
||||
|
||||
char senderIP[64];
|
||||
|
||||
Reference in new issue
Block a user