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

Function FreeAllVisEffects

Descent3/viseffect.cpp:805–810  ·  view source on GitHub ↗

Frees all the objects that are currently in use

Source from the content-addressed store, hash-verified

803
804// Frees all the objects that are currently in use
805void FreeAllVisEffects() {
806
807 for (int i = 0; i < max_vis_effects; i++)
808 if (VisEffects[i].type != VIS_NONE)
809 VisEffectDelete(i);
810}
811
812// Creates a some sparks that go in random directions
813void CreateRandomLineSparks(int num_sparks, vector *pos, int roomnum, uint16_t color, float force_scalar) {

Callers 1

FreeAllObjectsFunction · 0.85

Calls 1

VisEffectDeleteFunction · 0.85

Tested by

no test coverage detected