packet freeing cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3939 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -274,6 +274,7 @@ void sendpackettoserv(int chan, ENetPacket *packet)
|
||||
{
|
||||
if(curpeer) enet_peer_send(curpeer, chan, packet);
|
||||
else localclienttoserver(chan, packet);
|
||||
if(!packet->referenceCount) enet_packet_destroy(packet);
|
||||
}
|
||||
|
||||
void c2skeepalive()
|
||||
|
||||
@@ -3078,7 +3078,6 @@ void process(ENetPacket *packet, int sender, int chan) // sender may be -1
|
||||
void localclienttoserver(int chan, ENetPacket *packet)
|
||||
{
|
||||
process(packet, 0, chan);
|
||||
if(!packet->referenceCount) enet_packet_destroy(packet);
|
||||
}
|
||||
|
||||
client &addclient()
|
||||
|
||||
Reference in New Issue
Block a user