2
0
mirror of https://github.com/rehlds/metamod-r.git synced 2025-01-13 23:28:23 +03:00

Initialize m_clientmeta in MConfig constructor and change it to BOOL (#8)

* Initialize m_clientmeta in MConfig constructor and change it to BOOL
This commit is contained in:
In-line 2017-06-28 22:22:18 +04:00 committed by Dmitry Novikov
parent 8d6d730ed7
commit ff185130cf
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#include "precompiled.h"
MConfig::MConfig() : m_debuglevel(0), m_gamedll(nullptr), m_exec_cfg(nullptr), m_list(nullptr), m_filename(nullptr)
MConfig::MConfig() : m_debuglevel(0), m_gamedll(nullptr), m_exec_cfg(nullptr), m_list(nullptr), m_filename(nullptr), m_clientmeta(FALSE)
{
set_directory();
}

View File

@ -36,7 +36,7 @@ public:
int m_debuglevel; // to use for meta_debug
char* m_gamedll; // string if specified in config.ini
char* m_exec_cfg; // ie exec.cfg
int m_clientmeta;
BOOL m_clientmeta;
private:
option_t* m_list;

View File

@ -9,7 +9,7 @@ option_t g_global_options[] =
{ "debuglevel", CF_INT, &g_config->m_debuglevel, "0" },
{ "gamedll", CF_PATH, &g_config->m_gamedll, nullptr },
{ "exec_cfg", CF_STR, &g_config->m_exec_cfg, nullptr },
{ "clientmeta", CF_BOOL, &g_config->m_clientmeta, false },
{ "clientmeta", CF_BOOL, &g_config->m_clientmeta, "no" },
// list terminator
{ nullptr, CF_NONE, nullptr, nullptr }