https://github.com/libsdl-org/Maelstrom/commit/a1b15bb697017cce0e31d0d3439b74ac80ba2904
From a1b15bb697017cce0e31d0d3439b74ac80ba2904 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 8 Nov 2011 01:12:58 -0500
Subject: [PATCH] Don't overwrite our old status if the network connection
times out. This code needs to be revisited once we have three players in the
mix.
---
netlogic/netplay.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/netlogic/netplay.cpp b/netlogic/netplay.cpp
index 77c471a2..e4b79a50 100644
--- a/netlogic/netplay.cpp
+++ b/netlogic/netplay.cpp
@@ -283,6 +283,8 @@ int SyncNetwork(void)
/* Don't wait forever */
++timeout;
if ( timeout == (PING_TIMEOUT/100) ) {
+ // Reset our current input state
+ TOGGLE(CurrIn);
return(-1);
}
}