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

Function HasPilotFinishedMission

Descent3/pilot.cpp:1611–1623  ·  view source on GitHub ↗

just like it says

Source from the content-addressed store, hash-verified

1609
1610// just like it says
1611bool HasPilotFinishedMission(pilot *Pilot, const char *mission_name) {
1612 ASSERT(Pilot);
1613 if (!Pilot)
1614 return false;
1615
1616 int index = Pilot->find_mission_data((char *)mission_name);
1617 if (index == -1)
1618 return false;
1619
1620 tMissionData data;
1621 Pilot->get_mission_data(index, &data);
1622 return data.finished;
1623}
1624
1625bool HasPilotFlownMission(pilot *Pilot, const char *mission_name) {
1626 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