]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.c
copy the apple_mouse_noaccel hack into vid_sdl too
[xonotic/darkplaces.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index 18cb6a13fc366e63cf2ba34bc2e0bbfc17cb2cad..995473c6e6936a60695b13e8b1ac06d5fd28e1e9 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -857,6 +857,7 @@ static const char *Cmd_GetCvarValue(const char *var, size_t varlen, cmdalias_t *
        static char varval[MAX_INPUTLINE];
        const char *varstr;
        char *varfunc;
+static char asis[] = "asis"; // just to suppress const char warnings
 
        if(varlen >= MAX_INPUTLINE)
                varlen = MAX_INPUTLINE - 1;
@@ -887,7 +888,7 @@ static const char *Cmd_GetCvarValue(const char *var, size_t varlen, cmdalias_t *
                varstr = Cmd_GetDirectCvarValue(varname, alias, &is_multiple);
                if(is_multiple)
                        if(!varfunc)
-                               varfunc = "asis";
+                               varfunc = asis;
        }
 
        if(!varstr)