Sends a radio message on the given channel.
| 694 | default: |
| 695 | Fail("Bad radio channel"); |
| 696 | break; |
| 697 | } |
| 698 | } |
| 699 | |
| 700 | // Players that can receive a message on the given channel; unit is the sender. |
| 701 | static void WhatUnits(AIUnit* unit, RefArray<NetworkObject>& units, ChatChannel channel) |
| 702 | { |
| 703 | switch (channel) |
| 704 | { |
| 705 | case CCVehicle: |
| 706 | { |
| 707 | Transport* veh = unit->GetVehicleIn(); |
| 708 | if (veh) |
| 709 | { |
| 710 | WhatUnitsVehicle(units, veh); |
| 711 | } |
no test coverage detected