mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Reset wait period for COM_BufInsertText
This commit is contained in:
parent
b84c45acaa
commit
eae76ee759
1 changed files with 6 additions and 0 deletions
|
|
@ -165,6 +165,8 @@ void COM_BufAddTextEx(const char *ptext, int flags)
|
||||||
*/
|
*/
|
||||||
void COM_BufInsertTextEx(const char *ptext, int flags)
|
void COM_BufInsertTextEx(const char *ptext, int flags)
|
||||||
{
|
{
|
||||||
|
const INT32 old_wait = com_wait;
|
||||||
|
|
||||||
char *temp = NULL;
|
char *temp = NULL;
|
||||||
size_t templen;
|
size_t templen;
|
||||||
|
|
||||||
|
|
@ -176,10 +178,14 @@ void COM_BufInsertTextEx(const char *ptext, int flags)
|
||||||
VS_Clear(&com_text);
|
VS_Clear(&com_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
com_wait = 0;
|
||||||
|
|
||||||
// add the entire text of the file (or alias)
|
// add the entire text of the file (or alias)
|
||||||
COM_BufAddTextEx(ptext, flags);
|
COM_BufAddTextEx(ptext, flags);
|
||||||
COM_BufExecute(); // do it right away
|
COM_BufExecute(); // do it right away
|
||||||
|
|
||||||
|
com_wait += old_wait;
|
||||||
|
|
||||||
// add the copied off data
|
// add the copied off data
|
||||||
if (templen)
|
if (templen)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue