mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-10 09:41:09 +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];
|
char cmds[CMDLINE_LENGTH];
|
||||||
int i, j, plus;
|
int i, j, plus;
|
||||||
|
|
||||||
plus = true;
|
plus = false; // On Unix, argv[0] is command name
|
||||||
j = 0;
|
|
||||||
for (i=0; cmdline.string[i]; i++)
|
for (i = 0, j = 0; cmdline.string[i]; i++)
|
||||||
{
|
{
|
||||||
if (cmdline.string[i] == '+')
|
if (cmdline.string[i] == '+')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue