mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-11 23:50:51 +02:00
AI will now build radar.
This commit is contained in:
@@ -5799,6 +5799,16 @@ int HouseClass::AI_Building(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (BQuantity[STRUCT_RADAR] == 0) {
|
||||
b = &BuildingTypeClass::As_Reference(STRUCT_RADAR);
|
||||
if (Can_Build(b, ActLike) && (b->Cost_Of() < money || hasincome)) {
|
||||
choiceptr = BuildChoice.Alloc();
|
||||
if (choiceptr != NULL) {
|
||||
*choiceptr = BuildChoiceClass(URGENCY_MEDIUM, b->Type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
** Build some air defense.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user