frontport r8666

"Never, ever, let users mess with the SP Transporter.
It breaks the SP scripts!"

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8733 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-12-19 00:17:55 +00:00 committed by Git SVN Gateway
parent 5a2509a26d
commit 87802afa73
1 changed files with 7 additions and 0 deletions

View File

@ -2739,6 +2739,13 @@ void orderSelectedLocAdd(UDWORD player, UDWORD x, UDWORD y, BOOL add)
{
if (psCurr->selected)
{
if (psCurr->droidType == DROID_TRANSPORTER && !bMultiPlayer)
{
// Never, ever, let users mess with the SP Trasnsporter
// it is script controlled, and will break things!
break;
}
order = chooseOrderLoc(psCurr, x, y);
// see if the order can be added to the list
if (order != DORDER_NONE && !(add && orderDroidLocAdd(psCurr, order, x, y)))