- Merged the GC branch back into the trunk, so now it can receive more
testing from the people who download SVN trunk builds. SVN r795 (trunk)
This commit is contained in:
parent
3bfcc5c09c
commit
f2660dc336
88 changed files with 2541 additions and 1523 deletions
|
|
@ -1250,23 +1250,23 @@ CCMD (key)
|
|||
// These all begin with '+' as opposed to '-'.
|
||||
void C_ExecCmdLineParams ()
|
||||
{
|
||||
for (int currArg = 1; currArg < Args.NumArgs(); )
|
||||
for (int currArg = 1; currArg < Args->NumArgs(); )
|
||||
{
|
||||
if (*Args.GetArg (currArg++) == '+')
|
||||
if (*Args->GetArg (currArg++) == '+')
|
||||
{
|
||||
FString cmdString;
|
||||
int cmdlen = 1;
|
||||
int argstart = currArg - 1;
|
||||
|
||||
while (currArg < Args.NumArgs())
|
||||
while (currArg < Args->NumArgs())
|
||||
{
|
||||
if (*Args.GetArg (currArg) == '-' || *Args.GetArg (currArg) == '+')
|
||||
if (*Args->GetArg (currArg) == '-' || *Args->GetArg (currArg) == '+')
|
||||
break;
|
||||
currArg++;
|
||||
cmdlen++;
|
||||
}
|
||||
|
||||
cmdString = BuildString (cmdlen, Args.GetArgList (argstart));
|
||||
cmdString = BuildString (cmdlen, Args->GetArgList (argstart));
|
||||
if (!cmdString.IsEmpty())
|
||||
{
|
||||
C_DoCommand (&cmdString[1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue