From 116afd08c5b7e520ce9aaaf1a850245b76ffd797 Mon Sep 17 00:00:00 2001 From: Cyp Date: Thu, 17 Nov 2011 14:40:05 +0100 Subject: [PATCH] walls: If building a corner wall with two trucks, don't cancel the second truck's order when it arrives. --- src/action.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/action.cpp b/src/action.cpp index 38e1a74ee..2f37df56c 100644 --- a/src/action.cpp +++ b/src/action.cpp @@ -1576,7 +1576,8 @@ void actionUpdateDroid(DROID *psDroid) { // structure on the build location - see if it is the same type STRUCTURE* const psStruct = getTileStructure(map_coord(psDroid->orderX), map_coord(psDroid->orderY)); - if (psStruct->pStructureType == (STRUCTURE_STATS *)psDroid->psTarStats) + if (psStruct->pStructureType == (STRUCTURE_STATS *)psDroid->psTarStats || + (((STRUCTURE_STATS *)psDroid->psTarStats)->type == REF_WALL && psStruct->pStructureType->type == REF_WALLCORNER)) { // same type - do a help build syncDebug("Reached build target: do-help");