mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
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:
parent
17fca44b20
commit
1281b67127
1 changed files with 3 additions and 3 deletions
|
@ -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] == '+')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue