From 2b2ce6d4f94d18b45451c9e648c1c0bb40557416 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 20 Nov 2010 14:14:59 +0000 Subject: [PATCH] print more useful data when a corrupt input packet comes from a client git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10618 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_user.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sv_user.c b/sv_user.c index fcfc4de2..548a1298 100644 --- a/sv_user.c +++ b/sv_user.c @@ -831,7 +831,9 @@ void SV_ReadClientMessage(void) switch (cmd) { default: - Con_Printf("SV_ReadClientMessage: unknown command char %i\n", cmd); + Con_Printf("SV_ReadClientMessage: unknown command char %i (at offset 0x%x)\n", cmd, msg_readcount); + if (developer_networking.integer) + Com_HexDumpToConsole(net_message.data, net_message.cursize); SV_DropClient (false); return; -- 2.39.2