mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-10-02 13:56:42 -05:00
Renaming error WEIRD_PLAYER_ID to CONNECTION_FAILED
This commit is contained in:
@@ -184,7 +184,7 @@ class LinkWireless {
|
||||
BUFFER_IS_FULL = 4,
|
||||
// Communication errors
|
||||
COMMAND_FAILED = 5,
|
||||
WEIRD_PLAYER_ID = 6,
|
||||
CONNECTION_FAILED = 6,
|
||||
SEND_DATA_FAILED = 7,
|
||||
RECEIVE_DATA_FAILED = 8,
|
||||
ACKNOWLEDGE_FAILED = 9,
|
||||
@@ -441,7 +441,7 @@ class LinkWireless {
|
||||
u8 assignedPlayerId = 1 + (u8)msB32(result1.responses[0]);
|
||||
if (assignedPlayerId >= LINK_WIRELESS_MAX_PLAYERS) {
|
||||
reset();
|
||||
lastError = WEIRD_PLAYER_ID;
|
||||
lastError = CONNECTION_FAILED;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user