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

Function ProcElementUnlink

Descent3/procedurals.cpp:449–460  ·  view source on GitHub ↗

Unlinks a proc_element from a texture

Source from the content-addressed store, hash-verified

447}
448// Unlinks a proc_element from a texture
449void 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
462void ClearAllProceduralsFromTexture(int texnum) {
463 int proc_num = GameTextures[texnum].procedural->dynamic_proc_elements;

Callers 9

DoDynamicRisingEmberFunction · 0.85
DoDynamicSpinnersFunction · 0.85
DoDynamicRandomEmberFunction · 0.85
DoDynamicRoamersFunction · 0.85
DoDynamicFountainFunction · 0.85
DoDynamicConeFunction · 0.85
DoDynamicFallRightFunction · 0.85
DoDynamicFallLeftFunction · 0.85

Calls 1

ProcElementFreeFunction · 0.85

Tested by

no test coverage detected