]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.c
cmd: Use a bitshift and subtract to calculate CF_MAXFLAGSVAL
[xonotic/darkplaces.git] / common.c
index 8cecd03d41aba9353a0b9d993c03746e2cc380e8..35e9610656247eba96b4265fd5f9ec2d95c3380d 100644 (file)
--- a/common.c
+++ b/common.c
@@ -903,9 +903,9 @@ void COM_Init_Commands (void)
        Cvar_RegisterVariable (&registered);
        Cvar_RegisterVariable (&cmdline);
        Cvar_RegisterVariable(&cl_playermodel);
-       Cvar_RegisterAlias(&cl_playermodel, "_cl_playermodel");
+       Cvar_RegisterVirtual(&cl_playermodel, "_cl_playermodel");
        Cvar_RegisterVariable(&cl_playerskin);
-       Cvar_RegisterAlias(&cl_playerskin, "_cl_playerskin");
+       Cvar_RegisterVirtual(&cl_playerskin, "_cl_playerskin");
 
        // reconstitute the command line for the cmdline externally visible cvar
        n = 0;