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

Function FreeScriptsForLevel

Descent3/ObjScript.cpp:181–195  ·  view source on GitHub ↗

free scripts for a level

Source from the content-addressed store, hash-verified

179
180// free scripts for a level
181void FreeScriptsForLevel() {
182 int i;
183
184 // Free scripts for the objects
185 for (i = 0; i <= Highest_object_index; i++) {
186 FreeObjectScripts(&Objects[i], true);
187 }
188
189 // Free scripts for the triggers
190 for (i = 0; i < Num_triggers; i++) {
191 FreeTriggerScript(&Triggers[i], true);
192 }
193
194 FreeLevelScript();
195}
196
197// allocates and initializes the scripts for an object.
198// robots, powerups, doors, etc.

Callers 2

FreeThisLevelFunction · 0.85
LGSMissionFunction · 0.85

Calls 3

FreeObjectScriptsFunction · 0.85
FreeTriggerScriptFunction · 0.85
FreeLevelScriptFunction · 0.85

Tested by

no test coverage detected