diff --git a/rehlds/engine/cmd.cpp b/rehlds/engine/cmd.cpp index 4224795..908a0eb 100644 --- a/rehlds/engine/cmd.cpp +++ b/rehlds/engine/cmd.cpp @@ -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';