| 61 | } |
| 62 | |
| 63 | static void AllowGetIn(AIGroup* group, bool allow = true) |
| 64 | { |
| 65 | for (int i = 0; i < MAX_UNITS_PER_GROUP; i++) |
| 66 | { |
| 67 | AIUnit* unit = group->UnitWithID(i + 1); |
| 68 | if (unit) |
| 69 | { |
| 70 | unit->AllowGetIn(allow); |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | static bool IsTargetValid(const Target* info, AIUnit* leader) |
| 76 | { |
no test coverage detected