* 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-861f7616d084master
parent
e7e6cffab4
commit
2f50ee2495
|
@ -820,7 +820,19 @@ BOOL recvDroidInfo()
|
|||
NETuint32_t(&x);
|
||||
NETuint32_t(&y);
|
||||
|
||||
ProcessDroidOrder(psDroid, order, x, y, 0, 0);
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
NETend();
|
||||
|
|
Loading…
Reference in New Issue