mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
cmd.c aufgeräumt
This commit is contained in:
parent
b66c5ba461
commit
78f5147161
1 changed files with 22 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue