Always show a delivery point when cheating droids with the debug menu.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10755 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
1ade59528c
commit
4ed334e27d
|
@ -1427,7 +1427,7 @@ void displayBlueprints(void)
|
|||
{
|
||||
if (deliveryPointToMove)
|
||||
{
|
||||
// it's a delivery point
|
||||
// it's a droid (from the debug menu) or a delivery point
|
||||
FLAG_POSITION pos = *deliveryPointToMove;
|
||||
pos.coords.x = world_coord(sBuildDetails.x)+world_coord(1)/2;
|
||||
pos.coords.y = world_coord(sBuildDetails.y)+world_coord(1)/2;
|
||||
|
@ -1436,9 +1436,15 @@ void displayBlueprints(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
// it's a droid or a delivery point (from the debug menu)
|
||||
// display nothing for now
|
||||
;
|
||||
// it's a droid (from the debug menu)
|
||||
// no delivery point is known, so show a fake one
|
||||
FLAG_POSITION pos;
|
||||
pos.coords.x = world_coord(sBuildDetails.x)+world_coord(1)/2;
|
||||
pos.coords.y = world_coord(sBuildDetails.y)+world_coord(1)/2;
|
||||
pos.coords.z = map_Height(pos.coords.x, pos.coords.y) + world_coord(1)/8;
|
||||
pos.factoryType = FACTORY_FLAG;
|
||||
pos.factoryInc = 0;
|
||||
renderDeliveryPoint(&pos, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue