X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=common.c;h=35e9610656247eba96b4265fd5f9ec2d95c3380d;hb=7305affaa1bdcfa17d27e7e155ed850143753fcf;hp=c36deb2d279fe2639ec95da911696a87d0b9724d;hpb=40252dce08297440544ab3b8caf66585aa839bf1;p=xonotic%2Fdarkplaces.git diff --git a/common.c b/common.c index c36deb2d..35e96106 100644 --- a/common.c +++ b/common.c @@ -1,5 +1,6 @@ /* Copyright (C) 1996-1997 Id Software, Inc. +Copyright (C) 2000-2020 DarkPlaces contributors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -902,9 +903,9 @@ void COM_Init_Commands (void) Cvar_RegisterVariable (®istered); 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;