walls: If building a corner wall with two trucks, don't cancel the second truck's order when it arrives.

master
Cyp 2011-11-17 14:40:05 +01:00
parent 233ee5e711
commit 116afd08c5
1 changed files with 2 additions and 1 deletions

View File

@ -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");