From 4ed334e27de9ff2a08e88a08058c17c56ce3a452 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sun, 2 May 2010 03:11:12 +0000 Subject: [PATCH] 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-861f7616d084 --- src/display3d.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/display3d.c b/src/display3d.c index ce6e60b47..89ea75fea 100644 --- a/src/display3d.c +++ b/src/display3d.c @@ -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); } } }