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

Function SetAutoSelectSecondaryWpnIdx

Descent3/weapon.cpp:1180–1185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178}
1179
1180void SetAutoSelectSecondaryWpnIdx(int slot, uint16_t idx) {
1181 if (slot < 0 || slot >= MAX_SECONDARY_WEAPONS)
1182 Int3();
1183
1184 SecondaryWpnSelectList[slot + 1] = idx;
1185}
1186
1187const uint16_t IWPNSEL_SKIP = (uint16_t) ((~WPNSEL_SKIP) & 0xFFFF);
1188

Callers 3

_ReadOldPilotFileFunction · 0.85
readMethod · 0.85
processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected