| 1159 | } |
| 1160 | |
| 1161 | uint16_t GetAutoSelectSecondaryWpnIdx(int slot) { |
| 1162 | int i = -1; |
| 1163 | |
| 1164 | while (SecondaryWpnSelectList[i + 1] != SELLIST_END) { |
| 1165 | if (slot == i) |
| 1166 | return SecondaryWpnSelectList[i + 1]; |
| 1167 | i++; |
| 1168 | } |
| 1169 | |
| 1170 | return WPNSEL_INVALID; |
| 1171 | } |
| 1172 | |
| 1173 | void SetAutoSelectPrimaryWpnIdx(int slot, uint16_t idx) { |
| 1174 | if (slot < 0 || slot >= MAX_PRIMARY_WEAPONS) |
no outgoing calls
no test coverage detected