From: havoc Date: Sat, 20 Nov 2010 14:14:59 +0000 (+0000) Subject: print more useful data when a corrupt input packet comes from a client X-Git-Tag: xonotic-v0.1.0preview~56^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b2ce6d4f94d18b45451c9e648c1c0bb40557416;p=xonotic%2Fdarkplaces.git 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 --- 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;