From da0b746037d48ae43d352ce6556631be34927b83 Mon Sep 17 00:00:00 2001 From: AlumiuN Date: Mon, 16 May 2022 20:03:34 +1200 Subject: [PATCH] Set console output priority to highest given option rather than most recently specified --- similar/misc/args.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/similar/misc/args.cpp b/similar/misc/args.cpp index d7eeacf62..51873cdc0 100644 --- a/similar/misc/args.cpp +++ b/similar/misc/args.cpp @@ -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;