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

Function GetPilotNumSavedGamesForMission

Descent3/pilot.cpp:1636–1648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1634}
1635
1636int GetPilotNumSavedGamesForMission(pilot *Pilot, const char *mission_name) {
1637 ASSERT(Pilot);
1638 if (!Pilot)
1639 return 0;
1640
1641 int index = Pilot->find_mission_data((char *)mission_name);
1642 if (index == -1)
1643 return 0;
1644
1645 tMissionData data;
1646 Pilot->get_mission_data(index, &data);
1647 return data.num_saves;
1648}
1649
1650int GetPilotNumRestoredGamesForMission(pilot *Pilot, const char *mission_name) {
1651 ASSERT(Pilot);

Callers

nothing calls this directly

Calls 2

find_mission_dataMethod · 0.80
get_mission_dataMethod · 0.80

Tested by

no test coverage detected