X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cvar.c;fp=cvar.c;h=68c65441f98d9f91cdb6c28c2687520f0c826bd0;hp=b4f18c6b30e9104c107a0a9cd585a4cf12f63754;hb=775c0f6d056c37d2e23f9a96ec827023fe5e3404;hpb=f603e392a4dc9b7da2732bc3c14585d54de99b7e diff --git a/cvar.c b/cvar.c index b4f18c6b..68c65441 100644 --- a/cvar.c +++ b/cvar.c @@ -621,7 +621,7 @@ void Cvar_RegisterVariable (cvar_t *variable) } // check for overlap with a command - if (Cmd_Exists(cmd_client, variable->name) || Cmd_Exists(cmd_server, variable->name)) + if (Cmd_Exists(cmd_local, variable->name) || Cmd_Exists(cmd_local, variable->name)) { Con_Printf("Cvar_RegisterVariable: %s is a command\n", variable->name); return; @@ -685,7 +685,7 @@ cvar_t *Cvar_Get(cvar_state_t *cvars, const char *name, const char *value, int f } // check for overlap with a command - if (Cmd_Exists(cmd_client, name) || Cmd_Exists(cmd_server, name)) + if (Cmd_Exists(cmd_local, name) || Cmd_Exists(cmd_local, name)) { Con_Printf("Cvar_Get: %s is a command\n", name); return NULL;