mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 03:32:35 +01:00
- reverted AI's repair rule logic to hunt down an AI out of synch
This commit is contained in:
parent
33aac9f2ae
commit
e62f3ca64c
@ -110,7 +110,7 @@ void AiRuleRepair::execute() {
|
||||
const Unit *damagedUnit= aiInterface->getMyUnit(damagedUnitIndex);
|
||||
|
||||
//find a repairer and issue command
|
||||
|
||||
/*
|
||||
if(damagedUnit != NULL) {
|
||||
static std::vector<SkillClass> skillClassList;
|
||||
if(skillClassList.size() == 0) {
|
||||
@ -131,8 +131,8 @@ void AiRuleRepair::execute() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
for(int i=0; i<aiInterface->getMyUnitCount(); ++i){
|
||||
const Unit *u= aiInterface->getMyUnit(i);
|
||||
const RepairCommandType *rct= static_cast<const RepairCommandType *>(u->getType()->getFirstCtOfClass(ccRepair));
|
||||
@ -146,7 +146,6 @@ void AiRuleRepair::execute() {
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
// =====================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user