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

Function GetPilotNumRestoredGamesForMission

Descent3/pilot.cpp:1650–1662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1648}
1649
1650int GetPilotNumRestoredGamesForMission(pilot *Pilot, const char *mission_name) {
1651 ASSERT(Pilot);
1652 if (!Pilot)
1653 return 0;
1654
1655 int index = Pilot->find_mission_data((char *)mission_name);
1656 if (index == -1)
1657 return 0;
1658
1659 tMissionData data;
1660 Pilot->get_mission_data(index, &data);
1661 return data.num_restores;
1662}
1663
1664void IncrementPilotSavedGamesForMission(pilot *Pilot, const char *mission_name) {
1665 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