X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=common.c;h=4a05368b5b85d5e7a462cbe40cd823d5d569329a;hb=7498fdf63cfe809055148711e4056e7e1920303c;hp=9b7dd101926608013114dfe71e685c536b2a9445;hpb=f57af416ea28b2f9a7aa3cae6a3cd3843093a1b8;p=xonotic%2Fdarkplaces.git diff --git a/common.c b/common.c index 9b7dd101..4a05368b 100644 --- a/common.c +++ b/common.c @@ -28,8 +28,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "quakedef.h" #include "utf8lib.h" -cvar_t registered = {0, "registered","0", "indicates if this is running registered quake (whether gfx/pop.lmp was found)"}; -cvar_t cmdline = {0, "cmdline","0", "contains commandline the engine was launched with"}; +cvar_t registered = {CVAR_CLIENT | CVAR_SERVER, "registered","0", "indicates if this is running registered quake (whether gfx/pop.lmp was found)"}; +cvar_t cmdline = {CVAR_CLIENT | CVAR_SERVER, "cmdline","0", "contains commandline the engine was launched with"}; char com_token[MAX_INPUTLINE]; int com_argc; @@ -1645,7 +1645,7 @@ void COM_Init_Commands (void) break; } com_cmdline[n] = 0; - Cvar_Set ("cmdline", com_cmdline); + Cvar_SetQuick(&cmdline, com_cmdline); } /*