================== CG_FreeMarkPoly ================== */
| 68 | ================== |
| 69 | */ |
| 70 | void 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 | =================== |
no test coverage detected