| 901 | } |
| 902 | |
| 903 | void SelectWeapon(int slot) { |
| 904 | if (Player_object->type != OBJ_PLAYER) |
| 905 | return; // This can happen when a player is dead and tries to select a weapon |
| 906 | |
| 907 | if (slot < NUM_PRIMARY_SLOTS) |
| 908 | SelectPrimaryWeapon(slot); |
| 909 | else |
| 910 | SelectSecondaryWeapon(slot); |
| 911 | } |
| 912 | |
| 913 | // slot ranges 0-4 |
| 914 | void SelectPrimaryWeapon(int slot) { |
no test coverage detected