Skip to content

Commit

Permalink
Fix Vtols so they calculate pathing routes instead of assuming otherw…
Browse files Browse the repository at this point in the history
…ise.

fixes ticket:2534
refs 818e9b4 (master)
cookie to effigy for the savegame.
  • Loading branch information
vexed committed Sep 11, 2011
1 parent d1c9349 commit 419ae40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/move.c
Expand Up @@ -330,7 +330,8 @@ static BOOL moveDroidToBase(DROID *psDroid, UDWORD x, UDWORD y, BOOL bFormation)
psDroid->sMove.psFormation = NULL;
return true;
}
else if (isVtolDroid(psDroid) || (game.maxPlayers > 0 && psDroid->droidType == DROID_TRANSPORTER))
// NOTE: While Vtols can fly, then can't go through things, like the transporter.
else if ((game.maxPlayers > 0 && psDroid->droidType == DROID_TRANSPORTER))
{
fpathSetDirectRoute(psDroid, x, y);
retVal = FPR_OK;
Expand Down

0 comments on commit 419ae40

Please sign in to comment.