| 725 | } |
| 726 | |
| 727 | void UIActions::ProcessAction(AIUnit* unit) |
| 728 | { |
| 729 | PoseidonAssert(unit); |
| 730 | |
| 731 | int i = FindSelected(); |
| 732 | if (i < 0) |
| 733 | { |
| 734 | return; |
| 735 | } |
| 736 | const UIAction& action = Get(i); |
| 737 | if (action.hideOnUse) |
| 738 | { |
| 739 | Hide(); |
| 740 | _selected.type = ATNone; |
| 741 | } |
| 742 | unit->GetVehicle()->StartActionProcessing(action, unit); |
| 743 | } |
| 744 | |
| 745 | int CmpActions(const UIAction* action1, const UIAction* action2) |
| 746 | { |
no test coverage detected