2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Merge pull request #80 from s1lentq/master

Fix: not read configuration the files at rehlds_fixes
This commit is contained in:
theAsmodai 2015-10-17 04:03:38 +03:00
commit ff305e86b6

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';