mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-23 08:00:18 +02:00
fix(corepp): allow arguments to be separated by a comma
This commit is contained in:
1 file changed
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user