mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-24 15:37:59 -05:00
FIX: Accepting ping messages, as they have the playerCount
This commit is contained in:
parent
942667b92b
commit
70c74a5bfe
|
|
@ -853,7 +853,7 @@ class LinkWireless {
|
|||
bool isFromSamePlayer = remotePlayerId == sessionState.currentPlayerId;
|
||||
bool hasBadChecksum = checksum != buildChecksum(data);
|
||||
|
||||
if (isFromSamePlayer || isPing || hasBadChecksum)
|
||||
if (isFromSamePlayer || hasBadChecksum)
|
||||
continue;
|
||||
|
||||
Message message;
|
||||
|
|
@ -861,7 +861,7 @@ class LinkWireless {
|
|||
message.data = data;
|
||||
message.playerId = remotePlayerId;
|
||||
|
||||
if (!acceptMessage(message, isConfirmation, remotePlayerCount))
|
||||
if (!acceptMessage(message, isConfirmation, remotePlayerCount) || isPing)
|
||||
continue;
|
||||
|
||||
if (config.retransmission && isConfirmation) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user