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

Function PPic_GetOffsetByID

Descent3/PilotPicsAPI.cpp:710–715  ·  view source on GitHub ↗

------------------------------------- PPic_GetOffsetByID Purpose: Returns the file offset of the given pilot id. -1 if not found -------------------------------------

Source from the content-addressed store, hash-verified

708// Returns the file offset of the given pilot id. -1 if not found
709// -------------------------------------
710int PPic_GetOffsetByID(uint16_t pilot_id) {
711 int index = PPic_GetIndexFromID(pilot_id);
712 if (index == -1)
713 return -1;
714 return Pilot_id_to_offset[index].offset;
715}
716
717// -------------------------------------
718// PPic_GetIndexFromID

Callers 2

PPic_GetPilotFunction · 0.85
PPic_GetBitmapHandleFunction · 0.85

Calls 1

PPic_GetIndexFromIDFunction · 0.85

Tested by

no test coverage detected