MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SetAutoSelectPrimaryWpnIdx

Function SetAutoSelectPrimaryWpnIdx

Descent3/weapon.cpp:1173–1178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171}
1172
1173void SetAutoSelectPrimaryWpnIdx(int slot, uint16_t idx) {
1174 if (slot < 0 || slot >= MAX_PRIMARY_WEAPONS)
1175 Int3();
1176
1177 PrimaryWpnSelectList[slot + 1] = idx;
1178}
1179
1180void SetAutoSelectSecondaryWpnIdx(int slot, uint16_t idx) {
1181 if (slot < 0 || slot >= MAX_SECONDARY_WEAPONS)

Callers 3

_ReadOldPilotFileFunction · 0.85
readMethod · 0.85
processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected