https://github.com/libsdl-org/Maelstrom/commit/3d6a9c1a70ae668cce8da3ca471261bd1a1d7baa
From 3d6a9c1a70ae668cce8da3ca471261bd1a1d7baa Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 26 Nov 2011 22:29:52 -0500
Subject: [PATCH] Fixed game responsiveness under low latency, reasonable
packet loss conditions.
---
game/netplay.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/game/netplay.cpp b/game/netplay.cpp
index e089fb12..4ebffc87 100644
--- a/game/netplay.cpp
+++ b/game/netplay.cpp
@@ -382,6 +382,10 @@ error("Received packet for next frame! (%lu, current = %lu)\r\n",
CachedPacket[index].packet.Reset();
CachedPacket[index].packet.Write(Packet);
CachedPacket[index].packet.Seek(0);
+
+ /* Let the node know we're still waiting */
+ CurrPacket.address = Packet.address;
+ SDLNet_UDP_Send(gNetFD, -1, &CurrPacket);
}
#if DEBUG_NETWORK >= 1
else