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

Function VisEffectFree

Descent3/viseffect.cpp:537–549  ·  view source on GitHub ↗

Frees up a viseffect for use

Source from the content-addressed store, hash-verified

535
536// Frees up a viseffect for use
537int VisEffectFree(int visnum) {
538 ASSERT(visnum >= 0 && visnum <= max_vis_effects);
539
540 Vis_free_list[--Num_vis_effects] = visnum;
541 VisEffects[visnum].type = VIS_NONE;
542
543 if (visnum == Highest_vis_effect_index) {
544 while (VisEffects[Highest_vis_effect_index].type != VIS_NONE && Highest_vis_effect_index > 0)
545 Highest_vis_effect_index--;
546 }
547
548 return 1;
549}
550
551int VisEffectInitType(vis_effect *vis) {
552 int ret = 1;

Callers 1

VisEffectDeleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected