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-861f7616d084
master
Freddie Witherden 2008-01-04 10:32:59 +00:00
parent d84aaa6701
commit daad83d316
1 changed files with 7 additions and 1 deletions

View File

@ -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;