Skip to content
Snippets Groups Projects
Commit fd63b50f authored by James R.'s avatar James R.
Browse files

Merge branch 'insert-wait' into 'next'

Do not let previous wait commands affect COM_BufInsertText

See merge request STJr/SRB2!1207
parents 5f772c18 ba4b6ec4
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,8 @@ void COM_BufAddTextEx(const char *ptext, int flags)
*/
void COM_BufInsertTextEx(const char *ptext, int flags)
{
const INT32 old_wait = com_wait;
char *temp = NULL;
size_t templen;
......@@ -176,10 +178,14 @@ void COM_BufInsertTextEx(const char *ptext, int flags)
VS_Clear(&com_text);
}
com_wait = 0;
// add the entire text of the file (or alias)
COM_BufAddTextEx(ptext, flags);
COM_BufExecute(); // do it right away
com_wait += old_wait;
// add the copied off data
if (templen)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment