Frees up a viseffect for use
| 535 | |
| 536 | // Frees up a viseffect for use |
| 537 | int 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 | |
| 551 | int VisEffectInitType(vis_effect *vis) { |
| 552 | int ret = 1; |