- Added textual descriptions of the zlib errors.

SVN r3689 (trunk)
This commit is contained in:
Randy Heit 2012-06-16 03:29:44 +00:00
commit 08272a29ad
6 changed files with 39 additions and 5 deletions

View file

@ -62,7 +62,7 @@
#include "templates.h"
#include "c_console.h"
#include "st_start.h"
#include "m_misc.h"
#include "doomstat.h"
#include "i_net.h"
@ -303,7 +303,7 @@ void PacketGet (void)
// Printf("recv %d/%lu\n", c, msgsize + 1);
if (err != Z_OK)
{
Printf("Net decompression failed (zlib error %d)\n", err);
Printf("Net decompression failed (zlib error %s)\n", M_ZLibError(err));
// Pretend no packet
doomcom.remotenode = -1;
return;