From 8d1e2bceaad44377e9cb84cd06bcfd738656de11 Mon Sep 17 00:00:00 2001 From: Rodrigo Alfonso Date: Sun, 25 Aug 2024 08:45:31 -0300 Subject: [PATCH] FIX: Player calculation with new timeout system --- lib/LinkCable.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/LinkCable.hpp b/lib/LinkCable.hpp index 4e7a067..0cce2d6 100644 --- a/lib/LinkCable.hpp +++ b/lib/LinkCable.hpp @@ -273,7 +273,7 @@ class LinkCable { _state.IRQFlag = false; for (u32 i = 0; i < LINK_CABLE_MAX_PLAYERS; i++) { - if (!_state.msgFlags[i]) + if (isOnline(i) && !_state.msgFlags[i]) _state.msgTimeouts[i]++; _state.msgFlags[i] = false; }