walls: If building a corner wall with two trucks, don't cancel the second truck's order when it arrives.
parent
233ee5e711
commit
116afd08c5
|
@ -1576,7 +1576,8 @@ void actionUpdateDroid(DROID *psDroid)
|
||||||
{
|
{
|
||||||
// structure on the build location - see if it is the same type
|
// structure on the build location - see if it is the same type
|
||||||
STRUCTURE* const psStruct = getTileStructure(map_coord(psDroid->orderX), map_coord(psDroid->orderY));
|
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
|
// same type - do a help build
|
||||||
syncDebug("Reached build target: do-help");
|
syncDebug("Reached build target: do-help");
|
||||||
|
|
Loading…
Reference in New Issue