Fixing double send

This commit is contained in:
Rodrigo Alfonso 2023-02-03 08:47:04 -03:00
parent 367f504338
commit d52a709f81

View File

@ -198,7 +198,7 @@ void messageLoop() {
std::vector<u32>{counters[linkWireless->getPlayerId()]});
CHECK_ERRORS("Send failed :(")
if (!doubleSend && (keys & KEY_LEFT)) {
if (!doubleSend && (keys & KEY_LEFT) && linkWireless->canSend()) {
doubleSend = true;
goto again;
}