mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@18 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
ebe2cd66d7
commit
fce4227a91
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