diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-10-23 11:13:53 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-10-26 12:28:03 +0200 |
commit | f0f2496a25cedc0cf9076491ccaccab0647e16f5 (patch) | |
tree | 98ad9ea81011d2e9120d4880dc6e2822b48ba781 /src/configuration.cpp | |
parent | c6bb66d3bb2d6ee29bd115ccad281c70d7d24177 (diff) | |
download | mana-f0f2496a25cedc0cf9076491ccaccab0647e16f5.tar.gz mana-f0f2496a25cedc0cf9076491ccaccab0647e16f5.tar.bz2 mana-f0f2496a25cedc0cf9076491ccaccab0647e16f5.tar.xz mana-f0f2496a25cedc0cf9076491ccaccab0647e16f5.zip |
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.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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) { |