VTOLs should fly over gates and not stop to wait for them to open. Closes ticket:1709

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10413 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2010-03-27 16:30:50 +00:00 committed by Git SVN Gateway
parent 8005665c92
commit 1ef75c3559
1 changed files with 1 additions and 1 deletions

View File

@ -970,7 +970,7 @@ static void moveCalcBlockingSlide(DROID *psDroid, float *pmx_, float *pmy_, uint
// is the new tile a gate?
psTile = mapTile(ntx, nty);
if (psTile && psTile->psObject && psTile->psObject->type == OBJ_STRUCTURE
if (!isFlying(psDroid) && psTile && psTile->psObject && psTile->psObject->type == OBJ_STRUCTURE
&& aiCheckAlliances(psTile->psObject->player, psDroid->player)
&& ((STRUCTURE *)psTile->psObject)->status == SS_BUILT
&& ((STRUCTURE *)psTile->psObject)->pStructureType->type == REF_GATE)