Make the SP transport refusal of orders a bit more graceful.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8857 4a71c877-e1ca-e34f-864e-861f7616d084
master
Guangcong Luo 2009-12-29 07:51:19 +00:00 committed by Git SVN Gateway
parent 6a059fc8f8
commit a9e10388ab
1 changed files with 4 additions and 4 deletions

View File

@ -2740,11 +2740,11 @@ void orderSelectedLocAdd(UDWORD player, UDWORD x, UDWORD y, BOOL add)
if (psCurr->selected)
{
// can't use bMultiPlayer since multimsg could be off.
if (psCurr->droidType == DROID_TRANSPORTER && game.type != SKIRMISH)
if (psCurr->droidType == DROID_TRANSPORTER && game.type == CAMPAIGN)
{
// Never, ever, let users mess with the SP Trasnsporter
// it is script controlled, and will break things!
break;
// Transport in campaign cannot be controlled by players
DeSelectDroid(psCurr);
continue;
}
order = chooseOrderLoc(psCurr, x, y);