mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +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,8 +1507,14 @@ CCMD (resetcvar)
|
|||
{
|
||||
FBaseCVar *var = FindCVar (argv[1], NULL);
|
||||
if (var != NULL)
|
||||
{
|
||||
var->ResetToDefault();
|
||||
}
|
||||
else
|
||||
{
|
||||
Printf ("No such variable: %s\n", argv[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CCMD (get)
|
||||
|
|
Loading…
Reference in a new issue