Unlinks a proc_element from a texture
| 447 | } |
| 448 | // Unlinks a proc_element from a texture |
| 449 | void ProcElementUnlink(int index, int texnum) { |
| 450 | dynamic_proc_element *proc = &DynamicProcElements[index]; |
| 451 | |
| 452 | ASSERT(index != -1); |
| 453 | if (proc->prev == -1) |
| 454 | GameTextures[texnum].procedural->dynamic_proc_elements = proc->next; |
| 455 | else |
| 456 | DynamicProcElements[proc->prev].next = proc->next; |
| 457 | if (proc->next != -1) |
| 458 | DynamicProcElements[proc->next].prev = proc->prev; |
| 459 | ProcElementFree(index); |
| 460 | } |
| 461 | // Clears all the procedurals elements attached to this texture |
| 462 | void ClearAllProceduralsFromTexture(int texnum) { |
| 463 | int proc_num = GameTextures[texnum].procedural->dynamic_proc_elements; |
no test coverage detected