Constructor droids no longer attempt to repair a building that is being demolished.

master
Gerard Krol 2009-04-06 21:46:48 +02:00
parent 800c764340
commit 82e8c48732
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ BASE_OBJECT * checkForDamagedStruct(DROID *psDroid, STRUCTURE *psTarget)
//check for damage
if (psCurr->status == SS_BUILT &&
structIsDamaged(psCurr) &&
!checkDroidsDemolishing(psCurr) &&
visibleObject((BASE_OBJECT *)psDroid, (BASE_OBJECT *)psCurr, false))
{
//check for within range