Fix: not read configuration the files at rehlds_fixes (bug in Cbuf_InsertTextLines)

This commit is contained in:
s1lentq 2015-10-17 06:55:52 +06:00
parent 55c9a80cde
commit 365ad30c20

View File

@ -131,8 +131,8 @@ void Cbuf_InsertTextLines(char *text)
#ifdef REHLDS_FIXES
if (currLen)
Q_memmove(cmd_text.data + addLen + 1, cmd_text.data, currLen);
Q_memmove(cmd_text.data + addLen + 2, cmd_text.data, currLen);
cmd_text.data[0] = '\n'; // TODO: Why we need leading \n, if there is no commands in the start?
Q_memcpy(&cmd_text.data[1], text, addLen);
cmd_text.data[addLen + 1] = '\n';