Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Oct 23, 2024
1 parent a2a2807 commit a63b5c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CMainConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ const std::vector<SIntSetting>& CMainConfig::GetIntSettingList()
{false, false, 0, 0, 1, "fakelag", &m_bFakeLagCommandEnabled, NULL},
{true, true, 50, 1000, 5000, "player_triggered_event_interval", &m_iPlayerTriggeredEventIntervalMs, &CMainConfig::OnPlayerTriggeredEventIntervalChange},
{true, true, 1, 100, 1000, "max_player_triggered_events_per_interval", &m_iMaxPlayerTriggeredEventsPerInterval, &CMainConfig::OnPlayerTriggeredEventIntervalChange},
{true, true, 0, 1, 1, "resource_client_file_checks", &m_bCheckResourceClientFilesEnabled, NULL},
{true, true, 0, 1, 1, "resource_client_file_checks", &m_checkResourceClientFiles, NULL},
};

static std::vector<SIntSetting> settingsList;
Expand Down
4 changes: 2 additions & 2 deletions Server/mods/deathmatch/logic/CMainConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class CMainConfig : public CXMLConfig
const std::vector<SString>& GetOwnerEmailAddressList() const { return m_OwnerEmailAddressList; }
bool IsDatabaseCredentialsProtectionEnabled() const { return m_bDatabaseCredentialsProtectionEnabled != 0; }
bool IsFakeLagCommandEnabled() const { return m_bFakeLagCommandEnabled != 0; }
bool IsCheckResourceClientFilesEnabled() const { return m_bCheckResourceClientFilesEnabled != 0; }
bool IsCheckResourceClientFilesEnabled() const noexcept { return m_checkResourceClientFiles != 0; }

SString GetSetting(const SString& configSetting);
bool GetSetting(const SString& configSetting, SString& strValue);
Expand Down Expand Up @@ -228,5 +228,5 @@ class CMainConfig : public CXMLConfig
int m_bFakeLagCommandEnabled;
int m_iPlayerTriggeredEventIntervalMs;
int m_iMaxPlayerTriggeredEventsPerInterval;
int m_bCheckResourceClientFilesEnabled;
int m_checkResourceClientFiles;
};

0 comments on commit a63b5c9

Please sign in to comment.