mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +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.
|
** Build some air defense.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user