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

Function FreeLevelScript

Descent3/Mission.cpp:1708–1716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1706 AssignScriptsForLevel(); // initialize all scripts for level.
1707}
1708void FreeLevelScript() {
1709 Osiris_UnloadLevelModule();
1710 if (Current_level) {
1711 // free level's script and thread
1712 //@$-D3XExecScript(Current_level->d3xthread, Current_mission.cur_level, REF_LEVELTYPE, EVT_LEVELEND, 0, 0);
1713 tOSIRISEventInfo ei;
1714 Osiris_CallLevelEvent(EVT_LEVELEND, &ei);
1715 }
1716}
1717// return information about a mission
1718bool GetMissionInfo(const char *msnfile, tMissionInfo *msn) {
1719 CFILE *fp;

Callers 1

FreeScriptsForLevelFunction · 0.85

Calls 2

Osiris_UnloadLevelModuleFunction · 0.85
Osiris_CallLevelEventFunction · 0.85

Tested by

no test coverage detected