]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
print more useful data when a corrupt input packet comes from a client
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 20 Nov 2010 14:14:59 +0000 (14:14 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 20 Nov 2010 14:14:59 +0000 (14:14 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10618 d7cf8633-e32d-0410-b094-e92efae38249

sv_user.c

index fcfc4de2326cfc07a4db38b9c4782f5a973e57cc..548a1298dd62eafa2469e84d2c283d64201c81a3 100644 (file)
--- 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;