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

Function GetAutoSelectSecondaryWpnIdx

Descent3/weapon.cpp:1161–1171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1159}
1160
1161uint16_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
1173void SetAutoSelectPrimaryWpnIdx(int slot, uint16_t idx) {
1174 if (slot < 0 || slot >= MAX_PRIMARY_WEAPONS)

Callers 4

verifyMethod · 0.85
processMethod · 0.85
realizeMethod · 0.85
weapon_select_dialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected