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
This commit is contained in:
driAn
2008-12-07 16:19:58 +00:00
parent 70ed035b53
commit f121ee7303
+8
View File
@@ -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;
}