cmd.c aufgeräumt

This commit is contained in:
Yamagi Burmeister 2009-03-03 17:51:37 +00:00
parent b66c5ba461
commit 78f5147161

View file

@ -620,7 +620,7 @@ $Cvars will be expanded unless they are in a quoted token
void Cmd_TokenizeString (char *text, qboolean macroExpand)
{
int i;
char *com_token;
const char *com_token;
// clear the args from the last string
for (i=0 ; i<cmd_argc ; i++)
@ -695,8 +695,7 @@ void Cmd_AddCommand (char *cmd_name, xcommand_t function)
// fail if the command is a variable name
if (Cvar_VariableString(cmd_name)[0])
{
Com_Printf ("Cmd_AddCommand: %s already defined as a var\n", cmd_name);
return;
Cmd_RemoveCommand (cmd_name);
}
// fail if the command already exists