Update HOUSE.CPP
Bugfix, keep Air Defence if enemy has Air units. (Normally it looks only at Human player)
This commit is contained in:
parent
d9e287e08b
commit
0ca71f8fe5
1 changed files with 2 additions and 2 deletions
|
@ -5582,7 +5582,7 @@ int HouseClass::AI_Base_Defense(void)
|
|||
for (HousesType h = HOUSE_FIRST; h < HOUSE_COUNT; h++) {
|
||||
HouseClass * house = HouseClass::As_Pointer(h);
|
||||
|
||||
if (house && house->IsActive && house->IsHuman && !Is_Ally(house)) {
|
||||
if (house && house->IsActive && !Is_Ally(house)) {
|
||||
if ((house->ActiveAScan & (AIRCRAFTF_ORCA|AIRCRAFTF_TRANSPORT|AIRCRAFTF_HELICOPTER)) || (house->ActiveBScan & STRUCTF_HELIPAD)) {
|
||||
nothreat = false;
|
||||
break;
|
||||
|
|
Reference in a new issue