- quote cleanup.

This commit is contained in:
Christoph Oelckers 2020-06-30 22:53:15 +02:00
parent 8aaadfad1b
commit 2e98b2f8da
23 changed files with 50 additions and 296 deletions

View file

@ -1076,7 +1076,7 @@ CCMD (togglemsg)
const char *statestr = argv.argc() <= 2? "*" : argv[2];
if (*statestr == '*')
{
gi->PrintMessage(PRINT_MEDIUM, "\"%s\" = \"%s\"\n", var->GetName(), val.Bool ? "true" : "false");
Printf(PRINT_MEDIUM|PRINT_NOTIFY, "\"%s\" = \"%s\"\n", var->GetName(), val.Bool ? "true" : "false");
}
else
{
@ -1087,7 +1087,7 @@ CCMD (togglemsg)
// Positive means Off/On, negative means On/Off
int quote = state > 0? state + val.Bool : -(state + val.Bool);
auto text = quoteMgr.GetQuote(quote);
if (text) gi->PrintMessage(PRINT_MEDIUM, "%s\n", text);
if (text) Printf(PRINT_MEDIUM|PRINT_NOTIFY, "%s\n", text);
}
}
}