remove viseffect from the world
| 788 | |
| 789 | // remove viseffect from the world |
| 790 | void 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 |
| 805 | void FreeAllVisEffects() { |
no test coverage detected