cmd.c (Cmd_StuffCmds_f): fix logic so that it works properly with sdl/unix

port (on Unix, argv[0] is command name and is not empty).


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@18 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-02-16 10:01:46 +00:00
parent 17fca44b20
commit 1281b67127

View file

@ -220,9 +220,9 @@ void Cmd_StuffCmds_f (void)
char cmds[CMDLINE_LENGTH];
int i, j, plus;
plus = true;
j = 0;
for (i=0; cmdline.string[i]; i++)
plus = false; // On Unix, argv[0] is command name
for (i = 0, j = 0; cmdline.string[i]; i++)
{
if (cmdline.string[i] == '+')
{