diff --git a/REDALERT/HOUSE.CPP b/REDALERT/HOUSE.CPP index a228ab6..fb05acb 100644 --- a/REDALERT/HOUSE.CPP +++ b/REDALERT/HOUSE.CPP @@ -5787,6 +5787,20 @@ int HouseClass::AI_Building(void) } } + + /* + ** Build a Dome. + */ + 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. */ @@ -8170,4 +8184,4 @@ void HouseClass::Free_Unit_Trackers(void) delete TotalCrates; TotalCrates = NULL; } -} \ No newline at end of file +}