A fix to the argument parser.

This commit is contained in:
Brian Koropoff 2000-08-31 01:21:00 +00:00
parent 599f05c84b
commit 1ff9c694dd

View file

@ -55,19 +55,17 @@ int GIB_Get_Arg (char *start)
int i; int i;
int ret = -2; int ret = -2;
Con_Printf("Parsing at %s\n", start);
if (*start == '\'') if (*start == '\'')
{ {
ret = GIB_End_Quote(start); ret = GIB_End_Quote(start) + 1;
} }
if (*start == '\"') if (*start == '\"')
{ {
ret = GIB_End_DQuote(start); ret = GIB_End_DQuote(start) + 1;
} }
if (*start == '{') if (*start == '{')
{ {
ret = GIB_End_Bracket(start); ret = GIB_End_Bracket(start) + 1;
} }
if (ret == -1) if (ret == -1)