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

Function GetPilotShipPermissions

Descent3/pilot.cpp:1698–1712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1696}
1697
1698int GetPilotShipPermissions(pilot *Pilot, const char *mission_name) {
1699 ASSERT(!(Game_mode & GM_MULTI));
1700 ASSERT(Pilot);
1701 if (!Pilot)
1702 return 1;
1703
1704 int index = Pilot->find_mission_data((char *)mission_name);
1705 if (index == -1)
1706 return 0;
1707
1708 tMissionData data;
1709 Pilot->get_mission_data(index, &data);
1710
1711 return data.ship_permissions;
1712}
1713
1714////////////////////////////////////////////////////////////////////////
1715// Pilot file functions

Callers 1

menu.cppFile · 0.85

Calls 2

find_mission_dataMethod · 0.80
get_mission_dataMethod · 0.80

Tested by

no test coverage detected