From 0ca71f8fe5142c922f97f947836344944a095a86 Mon Sep 17 00:00:00 2001 From: Bast75 <38682537+Bast75@users.noreply.github.com> Date: Thu, 11 Jun 2020 21:52:18 +0200 Subject: [PATCH] Update HOUSE.CPP Bugfix, keep Air Defence if enemy has Air units. (Normally it looks only at Human player) --- REDALERT/HOUSE.CPP | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/REDALERT/HOUSE.CPP b/REDALERT/HOUSE.CPP index a228ab6..743e620 100644 --- a/REDALERT/HOUSE.CPP +++ b/REDALERT/HOUSE.CPP @@ -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; @@ -8170,4 +8170,4 @@ void HouseClass::Free_Unit_Trackers(void) delete TotalCrates; TotalCrates = NULL; } -} \ No newline at end of file +}