]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix toggle command's error message for cvars that are not found (thanks
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2008 08:43:29 +0000 (08:43 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2008 08:43:29 +0000 (08:43 +0000)
to metlslime for reporting this)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8140 d7cf8633-e32d-0410-b094-e92efae38249

cmd.c

diff --git a/cmd.c b/cmd.c
index c085aa8856c846bd6b4b34b849b1a03d29591d4f..b60ae285324c7706191921f0aafdec6605e71800 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -413,7 +413,7 @@ static void Cmd_Toggle_f(void)
                }
                else
                { // Invalid CVar
-                       Con_Printf("ERROR : CVar '%s' not found\n", Cmd_Argv(2) );
+                       Con_Printf("ERROR : CVar '%s' not found\n", Cmd_Argv(1) );
                }
        }
 }
@@ -829,7 +829,7 @@ static void Cmd_ExecuteAlias (cmdalias_t *alias)
        Cmd_PreprocessString( alias->value, buffer, sizeof(buffer) - 2, alias );
        // insert at start of command buffer, so that aliases execute in order
        // (fixes bug introduced by Black on 20050705)
-       
+
        // Note: Cbuf_PreprocessString will be called on this string AGAIN! So we
        // have to make sure that no second variable expansion takes place, otherwise
        // alias parameters containing dollar signs can have bad effects.