Allow VTOL to uncover fog of war and land-move to unseen areas in distance fog mode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5048 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
91727f270b
commit
22d10c80aa
14
src/order.c
14
src/order.c
|
@ -1502,20 +1502,16 @@ void orderDroidBase(DROID *psDroid, DROID_ORDER_DATA *psOrder)
|
|||
case DORDER_SCOUT:
|
||||
// can't move vtols to blocking tiles
|
||||
if (vtolDroid(psDroid)
|
||||
&& (fpathBlockingTile(map_coord(psOrder->x), map_coord(psOrder->y), getPropulsionStats(psDroid)->propulsionType)
|
||||
|| !TEST_TILE_VISIBLE(psDroid->player, mapTile(map_coord(psOrder->x), map_coord(psOrder->y)))))
|
||||
&& fpathBlockingTile(map_coord(psOrder->x), map_coord(psOrder->y), getPropulsionStats(psDroid)->propulsionType))
|
||||
{
|
||||
break;
|
||||
}
|
||||
//in multiPlayer, cannot move Transporter to blocking tile either
|
||||
if (game.maxPlayers > 0)
|
||||
if (game.maxPlayers > 0
|
||||
&& psDroid->droidType == DROID_TRANSPORTER
|
||||
&& fpathBlockingTile(map_coord(psOrder->x), map_coord(psOrder->y), getPropulsionStats(psDroid)->propulsionType))
|
||||
{
|
||||
if (psDroid->droidType == DROID_TRANSPORTER
|
||||
&& (fpathBlockingTile(map_coord(psOrder->x), map_coord(psOrder->y), getPropulsionStats(psDroid)->propulsionType)
|
||||
|| !TEST_TILE_VISIBLE(psDroid->player, mapTile(map_coord(psOrder->x), map_coord(psOrder->y)))))
|
||||
{
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
// move a droid to a location
|
||||
psDroid->order = psOrder->order;
|
||||
|
|
Loading…
Reference in New Issue