Cleanup bd_logger_enabled (#463)

* Cleanup bd_logger_enabled

* Change dvar flag

* Undo flag change.
This commit is contained in:
efinst0rm 2022-10-10 15:02:20 -05:00 committed by GitHub
parent f9a8e5ca00
commit 65eea18eb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,9 +342,8 @@ namespace demonware
void bd_logger_stub(const char* const function, const char* const msg, ...)
{
static auto* enabled =
game::Dvar_RegisterBool("bd_logger_enabled", false, game::DVAR_FLAG_SAVED, "bdLogger");
if (!enabled->current.enabled)
static const auto* bd_logger_enabled = game::Dvar_RegisterBool("bd_logger_enabled", false, game::DVAR_FLAG_NONE, "Enable bdLogger");
if (!bd_logger_enabled->current.enabled)
{
return;
}