From 2c7fcd02009326ee488cba02d59f279485356ed6 Mon Sep 17 00:00:00 2001 From: Bast75 <38682537+Bast75@users.noreply.github.com> Date: Thu, 11 Jun 2020 21:56:03 +0200 Subject: [PATCH] Update HOUSE.CPP Bugfix: Allow AI to grow if other player is bigger. (Was only if Human player is bigger) --- REDALERT/HOUSE.CPP | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/REDALERT/HOUSE.CPP b/REDALERT/HOUSE.CPP index a228ab6..47caca2 100644 --- a/REDALERT/HOUSE.CPP +++ b/REDALERT/HOUSE.CPP @@ -5632,7 +5632,7 @@ int HouseClass::AI_Building(void) for (HousesType h = HOUSE_FIRST; h < HOUSE_COUNT; h++) { HouseClass const * hptr = HouseClass::As_Pointer(h); - if (hptr != NULL && hptr->IsActive && hptr->IsHuman && quant < hptr->CurBuildings) { + if (hptr != NULL && hptr->IsActive && quant < hptr->CurBuildings) { quant = hptr->CurBuildings; } } @@ -8170,4 +8170,4 @@ void HouseClass::Free_Unit_Trackers(void) delete TotalCrates; TotalCrates = NULL; } -} \ No newline at end of file +}