memcpy of all the lines

origin
stpohle 23 years ago
parent 54835047d4
commit 1f4ef0357b

@ -17,9 +17,10 @@ chat_findfreeline ()
{
int i;
i = chat.lastline;
if (i >= CHAT_MAX_LINES) {
memcpy (chat.lines[1], chat.lines[0], 255);
i = 255;
memcpy (chat.lines[1], chat.lines[0], 255 * (CHAT_MAX_LINES - 1));
i = CHAT_MAX_LINES - 1;
}
else
chat.lastline++;

Loading…
Cancel
Save