MCPcopy Create free account
hub / github.com/JACoders/OpenJK / CG_FreeMarkPoly

Function CG_FreeMarkPoly

code/cgame/cg_marks.cpp:70–82  ·  view source on GitHub ↗

================== CG_FreeMarkPoly ================== */

Source from the content-addressed store, hash-verified

68==================
69*/
70void CG_FreeMarkPoly( markPoly_t *le ) {
71 if ( !le->prevMark ) {
72 CG_Error( "CG_FreeLocalEntity: not active" );
73 }
74
75 // remove from the doubly linked active list
76 le->prevMark->nextMark = le->nextMark;
77 le->nextMark->prevMark = le->prevMark;
78
79 // the free list is only singly linked
80 le->nextMark = cg_freeMarkPolys;
81 cg_freeMarkPolys = le;
82}
83
84/*
85===================

Callers 2

CG_AllocMarkFunction · 0.70
CG_AddMarksFunction · 0.70

Calls 1

CG_ErrorFunction · 0.70

Tested by

no test coverage detected