fixed crashy packet queue

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3845 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-12-03 07:14:06 +00:00
parent cc17a960a9
commit 20baa85461
6 changed files with 85 additions and 36 deletions
+2 -2
View File
@@ -10,14 +10,14 @@ VARP(networkdebug, 0, 0, 1);
extern bool c2sinit, senditemstoserver, watchingdemo;
extern string clientpassword;
packetqueue pkglogger(8);
packetqueue pktlogger;
void neterr(const char *s)
{
conoutf("\f3illegal network message (%s)", s);
// might indicate a client/server communication bug, create error report
pkglogger.flushtolog("packetlog.txt");
pktlogger.flushtolog("packetlog.txt");
conoutf("\f3wrote a network error report to packetlog.txt, please post this file to the bugtracker now!");
disconnect();