From 1281b671276db5e3b57b2170f46a16e5eee69fae Mon Sep 17 00:00:00 2001 From: sezero Date: Tue, 16 Feb 2010 10:01:46 +0000 Subject: [PATCH] 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 --- Quake/cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Quake/cmd.c b/Quake/cmd.c index 4115638f..595db56b 100644 --- a/Quake/cmd.c +++ b/Quake/cmd.c @@ -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] == '+') {