Updated cbuffer_t with a new means to retrieve lines. Con_BufferGetLines() returns an array of ptrs from the given buffer. This was added to eliminate the problem of meshing due to the fact that multiple threads can write to a cbuffer_t, meaning that their contents could (and often do) change while one thread is rendering and another is writing. This comes at a small price though; when drawing the console Con_BufferGetLines() is called each frame. Therefore, each frame, an array must be allocated, ptrs collected and then, after use, the array should be free'd.
Updated cbuffer_t with a new means to retrieve lines. Con_BufferGetLines() returns an array of ptrs from the given buffer. This was added to eliminate the problem of meshing due to the fact that multiple threads can write to a cbuffer_t, meaning that their contents could (and often do) change while one thread is rendering and another is writing.
This comes at a small price though; when drawing the console Con_BufferGetLines() is called each frame. Therefore, each frame, an array must be allocated, ptrs collected and then, after use, the array should be free'd.