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.

refs ticket:2534
  • Loading branch information
vexed committed Sep 11, 2011
1 parent 939a751 commit 818e9b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/move.cpp
Expand Up @@ -235,7 +235,8 @@ static bool moveDroidToBase(DROID *psDroid, UDWORD x, UDWORD y, bool bFormation,
psDroid->sMove.pathIndex = 0;
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 818e9b4

Please sign in to comment.