Don't display "x set to y" messages twice in the debugfile for consvars with CV_SHOWMODIFONETIME/CV_SHOWMODIF

(can't think offhand when those flags are actually used, but oh well)
This commit is contained in:
Monster Iestyn 2017-06-10 16:36:52 +01:00
parent b9828f78e8
commit bae55a3af4
1 changed files with 4 additions and 1 deletions

View File

@ -1180,7 +1180,10 @@ finish:
CONS_Printf(M_GetText("%s set to %s\n"), var->name, var->string);
var->flags &= ~CV_SHOWMODIFONETIME;
}
DEBFILE(va("%s set to %s\n", var->name, var->string));
else // display message in debug file only
{
DEBFILE(va("%s set to %s\n", var->name, var->string));
}
var->flags |= CV_MODIFIED;
// raise 'on change' code
#ifdef HAVE_BLUA