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

Function MultiMatchGeneric

Descent3/multi.cpp:6629–6635  ·  view source on GitHub ↗

Return index of generic that has matching table entry

Source from the content-addressed store, hash-verified

6627
6628// Return index of generic that has matching table entry
6629int MultiMatchGeneric(uint32_t unique_id) {
6630 for (int i = 0; i < MAX_OBJECT_IDS; i++)
6631 if (Multi_generic_match_table[i] == unique_id)
6632 return i;
6633
6634 return -1;
6635}
6636
6637// Return index of generic that has matching table entry
6638int MultiMatchWeapon(uint32_t unique_id) {

Callers 6

MultiDoJoinObjectsFunction · 0.85
MultiDoObjectFunction · 0.85
MultiBuildMatchTablesFunction · 0.85
MultiGetTypeIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected