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

Function IncrementPilotRestoredGamesForMission

Descent3/pilot.cpp:1681–1696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1679}
1680
1681void IncrementPilotRestoredGamesForMission(pilot *Pilot, const char *mission_name) {
1682 ASSERT(Pilot);
1683 if (!Pilot)
1684 return;
1685
1686 int index = Pilot->find_mission_data((char *)mission_name);
1687 if (index == -1)
1688 return;
1689
1690 tMissionData data;
1691 Pilot->get_mission_data(index, &data);
1692 data.num_restores++;
1693 Pilot->edit_mission_data(index, &data);
1694
1695 PltWriteFile(Pilot, false);
1696}
1697
1698int GetPilotShipPermissions(pilot *Pilot, const char *mission_name) {
1699 ASSERT(!(Game_mode & GM_MULTI));

Callers 1

LoadGameStateFunction · 0.85

Calls 4

PltWriteFileFunction · 0.85
find_mission_dataMethod · 0.80
get_mission_dataMethod · 0.80
edit_mission_dataMethod · 0.80

Tested by

no test coverage detected