mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +00:00
add a message for the failure case for resetcvar command
This commit is contained in:
parent
92d68d05db
commit
aa16fefd88
1 changed files with 6 additions and 0 deletions
|
@ -1507,7 +1507,13 @@ CCMD (resetcvar)
|
|||
{
|
||||
FBaseCVar *var = FindCVar (argv[1], NULL);
|
||||
if (var != NULL)
|
||||
{
|
||||
var->ResetToDefault();
|
||||
}
|
||||
else
|
||||
{
|
||||
Printf ("No such variable: %s\n", argv[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue