Set console output priority to highest given option rather than most recently specified

This commit is contained in:
AlumiuN 2022-05-16 20:03:34 +12:00
parent e29cddd524
commit da0b746037

View file

@ -351,9 +351,15 @@ static void ReadCmdArgs(Inilist &ini, Arglist &Args)
// Debug Options
else if (!d_stricmp(p, "-debug"))
CGameArg.DbgVerbose = CON_DEBUG;
{
if (CGameArg.DbgVerbose < CON_DEBUG)
CGameArg.DbgVerbose = CON_DEBUG;
}
else if (!d_stricmp(p, "-verbose"))
CGameArg.DbgVerbose = CON_VERBOSE;
{
if (CGameArg.DbgVerbose < CON_VERBOSE)
CGameArg.DbgVerbose = CON_VERBOSE;
}
else if (!d_stricmp(p, "-no-grab"))
CGameArg.DbgForbidConsoleGrab = true;