| 1708 | AIGroup* group = unit->GetGroup(); |
| 1709 | if (!group) |
| 1710 | { |
| 1711 | return; |
| 1712 | } |
| 1713 | if (unit->IsGroupLeader()) |
| 1714 | { |
| 1715 | group->SendState(new RadioMessageUnitPos(group, ListSelectedUnits(), status)); |
| 1716 | } |
| 1717 | ClearSelectedUnits(); |
| 1718 | } |
| 1719 | |
| 1720 | void InGameUI::SetFormationPos(AIUnit* unit, AI::FormationPos status) |
| 1721 | { |
| 1722 | if (!unit) |
| 1723 | { |
| 1724 | return; |
| 1725 | } |
| 1726 | AIGroup* group = unit->GetGroup(); |
| 1727 | if (!group) |
| 1728 | { |
| 1729 | return; |
nothing calls this directly
no test coverage detected