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-861f7616d084master
parent
8005665c92
commit
1ef75c3559
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue