Update HOUSE.CPP

Bugfix: Allow AI to grow if other player is bigger. (Was only if Human player is bigger)
This commit is contained in:
Bast75 2020-06-11 21:56:03 +02:00 committed by GitHub
parent d9e287e08b
commit 2c7fcd0200
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}
}