Fix illegal order check to correctly process UNKNOWN orders.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4324 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2008-03-24 21:35:04 +00:00
parent e402233597
commit 6db69592ed
1 changed files with 1 additions and 3 deletions

View File

@ -724,9 +724,7 @@ BOOL recvGroupOrder()
NETend();
/* Check if the order is valid */
if (order == UNKNOWN
|| (subType && !validOrderForObj(order))
|| (!subType && !validOrderForLoc(order)))
if (order != UNKNOWN && ((subType && !validOrderForObj(order)) || (!subType && !validOrderForLoc(order))))
{
debug(LOG_ERROR, "recvGroupOrder: Invalid group order received from %d!", NETgetSource());
return false;