Fix bug #1418 - transports can be controlled sometimes.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9298 4a71c877-e1ca-e34f-864e-861f7616d084
master
Guangcong Luo 2010-01-17 20:45:39 +00:00 committed by Git SVN Gateway
parent ffa10c5113
commit ada08d0040
1 changed files with 6 additions and 0 deletions

View File

@ -2690,6 +2690,12 @@ DROID_ORDER chooseOrderLoc(DROID *psDroid, UDWORD x,UDWORD y)
DROID_ORDER order = DORDER_NONE;
PROPULSION_TYPE propulsion = getPropulsionStats(psDroid)->propulsionType;
if (psCurr->droidType == DROID_TRANSPORTER && game.type == CAMPAIGN)
{
// transports can't be controlled in campaign
return DORDER_NONE;
}
// default to move; however, we can only end up on a tile
// where can stay, ie VTOLs must be able to land as well
if (isVtolDroid(psDroid))