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

Function ProcElementFree

Descent3/procedurals.cpp:268–273  ·  view source on GitHub ↗

Frees up a procelement for use

Source from the content-addressed store, hash-verified

266}
267// Frees up a procelement for use
268int ProcElementFree(int index) {
269 ASSERT(index >= 0 && index <= MAX_PROC_ELEMENTS);
270 Proc_free_list[--Num_proc_elements] = index;
271 DynamicProcElements[index].type = PROC_NONE;
272 return 1;
273}
274// Draws a line into the passed in bitmap
275void DrawProceduralLine(int x1, int y1, int x2, int y2, uint8_t color) {
276 int DY, DX;

Callers 1

ProcElementUnlinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected