| 1726 | AIGroup* group = unit->GetGroup(); |
| 1727 | if (!group) |
| 1728 | { |
| 1729 | return; |
| 1730 | } |
| 1731 | if (unit->IsGroupLeader()) |
| 1732 | { |
| 1733 | group->SendState(new RadioMessageFormationPos(group, ListSelectedUnits(), status)); |
| 1734 | } |
| 1735 | ClearSelectedUnits(); |
| 1736 | } |
| 1737 | |
| 1738 | void InGameUI::ShowHint(RString hint) |
| 1739 | { |
| 1740 | _hint->SetHint(hint); |
| 1741 | _hintTime = Glob.uiTime; |
| 1742 | if (hint.GetLength() > 0 && _hintSound.name.GetLength() > 0) |
| 1743 | { |
| 1744 | IWave* wave = GSoundScene->OpenAndPlayOnce2D(_hintSound.name, _hintSound.vol, _hintSound.freq, false); |
| 1745 | if (wave) |
| 1746 | { |
| 1747 | wave->SetKind(WaveMusic); // UI sounds considered music??? |
nothing calls this directly
no test coverage detected