implemented packet queue to write a report on network error

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3829 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-12-02 20:35:17 +00:00
parent 1372f52f02
commit 46325eca7d
4 changed files with 22 additions and 0 deletions
+3
View File
@@ -414,6 +414,9 @@ void gets2c() // get updates from the server
break;
case ENET_EVENT_TYPE_RECEIVE:
extern packetqueue pkglogger;
pkglogger.queue(*event.packet);
if(discmillis) conoutf("attempting to disconnect...");
else servertoclient(event.channelID, event.packet->data, (int)event.packet->dataLength);
enet_packet_destroy(event.packet);