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

Function ProcElementLink

Descent3/procedurals.cpp:438–447  ·  view source on GitHub ↗

link the procedural into the list for its texture

Source from the content-addressed store, hash-verified

436}
437// link the procedural into the list for its texture
438void ProcElementLink(int index, int texnum) {
439 dynamic_proc_element *proc = &DynamicProcElements[index];
440 proc->next = GameTextures[texnum].procedural->dynamic_proc_elements;
441 GameTextures[texnum].procedural->dynamic_proc_elements = index;
442 ASSERT(proc->next != index);
443
444 proc->prev = -1;
445 if (proc->next != -1)
446 DynamicProcElements[proc->next].prev = index;
447}
448// Unlinks a proc_element from a texture
449void ProcElementUnlink(int index, int texnum) {
450 dynamic_proc_element *proc = &DynamicProcElements[index];

Callers 8

AddProcRisingEmberFunction · 0.85
AddProcSpinnersFunction · 0.85
AddProcRandomEmberFunction · 0.85
AddProcRoamersFunction · 0.85
AddProcFountainFunction · 0.85
AddProcConeFunction · 0.85
AddProcFallRightFunction · 0.85
AddProcFallLeftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected