From f121ee7303529ba0d7192bb949fc705ebc34d922 Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 7 Dec 2008 16:19:58 +0000 Subject: [PATCH] create packet log report if server protocol is < 1000 git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3911 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clients2c.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index 7db749bb..02c76855 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -174,6 +174,14 @@ void parsemessages(int cn, playerent *d, ucharbuf &p) if(prot!=PROTOCOL_VERSION) { conoutf("\f3you are using a different game protocol (you: %d, server: %d)", PROTOCOL_VERSION, prot); + + if(prot<1000) // bug, possibly + { + // might indicate a client/server communication bug, create error report + pktlogger.flushtolog("packetlog_protocol.txt"); + conoutf("\f3wrote a network error report to packetlog_protocol.txt, please post this file to the bugtracker now!"); + } + disconnect(); return; }