* Fix a bug introduced in r3238 as a result of an incomplete conversion of the send/recv-DroidInfo functions

* Make sure to now also handle "special" droid orders (whatever a "special" order may be...)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3253 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-12-30 19:56:34 +00:00
parent e7e6cffab4
commit 2f50ee2495
1 changed files with 13 additions and 1 deletions

View File

@ -820,9 +820,21 @@ BOOL recvDroidInfo()
NETuint32_t(&x); NETuint32_t(&x);
NETuint32_t(&y); NETuint32_t(&y);
// If both the X _and_ Y coordinate are zero we've been given a
// "special" order.
if (x == 0 && y == 0)
{
turnOffMultiMsg(TRUE);
orderDroid(psDroid, order);
turnOffMultiMsg(FALSE);
}
// Otherwise it is just a normal "goto location" order
else
{
ProcessDroidOrder(psDroid, order, x, y, 0, 0); ProcessDroidOrder(psDroid, order, x, y, 0, 0);
} }
} }
}
NETend(); NETend();
return TRUE; return TRUE;