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

Function VisEffectDelete

Descent3/viseffect.cpp:790–802  ·  view source on GitHub ↗

remove viseffect from the world

Source from the content-addressed store, hash-verified

788
789// remove viseffect from the world
790void VisEffectDelete(int visnum) {
791 vis_effect *vis = &VisEffects[visnum];
792
793 ASSERT(visnum != -1);
794 ASSERT(vis->type != VIS_NONE);
795
796 VisEffectUnlink(visnum);
797
798 vis->type = VIS_NONE; // unused!
799 vis->roomnum = -1; // zero it!
800
801 VisEffectFree(visnum);
802}
803
804// Frees all the objects that are currently in use
805void FreeAllVisEffects() {

Callers 4

do_vis_physics_simFunction · 0.85
DoSprayEffectFunction · 0.85
VisEffectDeleteDeadFunction · 0.85
FreeAllVisEffectsFunction · 0.85

Calls 2

VisEffectUnlinkFunction · 0.85
VisEffectFreeFunction · 0.85

Tested by

no test coverage detected