mirror of
https://git.code.sf.net/p/quake/nuq
synced 2025-02-15 00:20:58 +00:00
A fix to the argument parser.
This commit is contained in:
parent
599f05c84b
commit
1ff9c694dd
1 changed files with 3 additions and 5 deletions
|
@ -55,19 +55,17 @@ int GIB_Get_Arg (char *start)
|
|||
int i;
|
||||
int ret = -2;
|
||||
|
||||
Con_Printf("Parsing at %s\n", start);
|
||||
|
||||
if (*start == '\'')
|
||||
{
|
||||
ret = GIB_End_Quote(start);
|
||||
ret = GIB_End_Quote(start) + 1;
|
||||
}
|
||||
if (*start == '\"')
|
||||
{
|
||||
ret = GIB_End_DQuote(start);
|
||||
ret = GIB_End_DQuote(start) + 1;
|
||||
}
|
||||
if (*start == '{')
|
||||
{
|
||||
ret = GIB_End_Bracket(start);
|
||||
ret = GIB_End_Bracket(start) + 1;
|
||||
}
|
||||
|
||||
if (ret == -1)
|
||||
|
|
Loading…
Reference in a new issue