Reset com_flags at end of COM_BufExecute

Fixes com_flags being discarded after the first command in
a chain (semicolon list).
This commit is contained in:
James R 2023-03-15 11:39:25 -07:00
parent e48786961a
commit a39f69c9c7

View file

@ -264,6 +264,8 @@ void COM_BufExecute(void)
break;
}
}
com_flags = 0;
}
/** Executes a string immediately. Used for skirting around WAIT commands.
@ -440,7 +442,6 @@ static void COM_TokenizeString(char *ptext)
com_argc = 0;
com_args = NULL;
com_flags = 0;
while (com_argc < MAX_ARGS)
{