mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-10-01 13:27:18 -05:00
Checking config.maxPlayers when restoring connection
This commit is contained in:
@@ -321,7 +321,8 @@ class LinkWireless {
|
||||
stopTimer();
|
||||
startTimer();
|
||||
|
||||
if (!linkRawWireless->restoreExistingConnection()) {
|
||||
if (!linkRawWireless->restoreExistingConnection() ||
|
||||
linkRawWireless->sessionState.playerCount > config.maxPlayers) {
|
||||
deactivate();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user