Make NETend(); return TRUE when we are finished decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3331 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
d84aaa6701
commit
daad83d316
|
@ -58,7 +58,13 @@ BOOL NETend(void)
|
|||
{
|
||||
assert(NETgetPacketDir() != PACKET_INVALID);
|
||||
|
||||
// If the packet is not being sent or failed to compile
|
||||
// If we are decoding just return TRUE
|
||||
if (NETgetPacketDir() == PACKET_DECODE)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// If the packet is invalid or failed to compile
|
||||
if (NETgetPacketDir() != PACKET_ENCODE || !NetMsg.status)
|
||||
{
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue