From 72a41f0b666118450bbc6ba2d0429480a3212de5 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 17 Jul 2009 02:13:27 +0000 Subject: [PATCH] - Turned net decompression into a non fatal error. It now drops the packet and waits for the sender to send a new, hopefully good, packet. SVN r1726 (trunk) --- docs/rh-log.txt | 2 ++ src/i_net.cpp | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index e53b305821..d76ebbb34f 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,6 @@ July 16, 2009 +- Turned net decompression into a non fatal error. It now drops the packet + and waits for the sender to send a new, hopefully good, packet. - Reduced potential for overflow in R_ProjectSprite(). - Moved the IF_ADDITIVETIME check earlier in APowerup::HandlePickup so that additive time powerups can be activated before the existing diff --git a/src/i_net.cpp b/src/i_net.cpp index f8f77fe26a..739da291e5 100644 --- a/src/i_net.cpp +++ b/src/i_net.cpp @@ -292,7 +292,10 @@ void PacketGet (void) // Printf("recv %d/%lu\n", c, msgsize + 1); if (err != Z_OK) { - I_Error("Net decompression failed (zlib error %d)\n", err); + Printf("Net decompression failed (zlib error %d)\n", err); + // Pretend no packet + doomcom.remotenode = -1; + return; } c = msgsize + 1; }