From f0f2496a25cedc0cf9076491ccaccab0647e16f5 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 23 Oct 2024 11:13:53 +0200 Subject: Fixed FPS limit being enabled by default There were some inconsistencies between the values set up in `Client::initConfiguration` and those in `getConfigDefaults`. These duplicates have now been removed. For some of these settings the code getting the values had to be adjusted to use getBoolValue, to actually rely on the provided default instead of one provided as a parameter. --- src/configuration.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/configuration.cpp') diff --git a/src/configuration.cpp b/src/configuration.cpp index e37fc1ba..f0499b2d 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -115,9 +115,8 @@ void Configuration::setDefaultValues(DefaultsData *defaultsData) mDefaultsData = defaultsData; } -VariableData* Configuration::getDefault(const std::string &key, - VariableData::DataType type - ) const +VariableData *Configuration::getDefault(const std::string &key, + VariableData::DataType type) const { if (mDefaultsData) { -- cgit v1.2.3-70-g09d2