fix(corepp): allow arguments to be separated by a comma

This commit is contained in:
smallmodel committed 2026-01-16 23:52:14 +01:00
1 parent a4c70670df
commit 3af8c64bfc
1 file changed
+2 -2
+2 -2
View File
@@ -260,7 +260,7 @@ void Script::SkipWhiteSpace(qboolean crossline)
//
CheckOverflow();
while (*script_p <= TOKENSPACE) {
while (*script_p <= TOKENSPACE || *script_p == TOKENCOMMA) {
if (*script_p++ == TOKENEOL) {
if (!crossline) {
FILE_Error(ERR_DROP, "Line %i is incomplete in file %s\n", line, filename.c_str());
@@ -560,7 +560,7 @@ const char *Script::GrabNextToken(qboolean crossline)
}
token_p = token;
while ((*script_p > TOKENSPACE) && !AtComment()) {
while ((*script_p > TOKENSPACE) && (*script_p != TOKENCOMMA) && !AtComment()) {
if ((*script_p == '\\') && (script_p < (end_p - 1))) {
script_p++;
switch (*script_p) {