summaryrefslogtreecommitdiff
path: root/src/playerrelations.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-10-23 11:13:53 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-10-26 12:28:03 +0200
commitf0f2496a25cedc0cf9076491ccaccab0647e16f5 (patch)
tree98ad9ea81011d2e9120d4880dc6e2822b48ba781 /src/playerrelations.cpp
parentc6bb66d3bb2d6ee29bd115ccad281c70d7d24177 (diff)
downloadmana-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/playerrelations.cpp')
-rw-r--r--src/playerrelations.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp
index f949203e..65b10a8c 100644
--- a/src/playerrelations.cpp
+++ b/src/playerrelations.cpp
@@ -58,8 +58,7 @@ class PlayerConfSerialiser : public ConfigurationListManager<std::pair<std::stri
if (name.empty())
return container;
- auto it =
- (*container).find(name);
+ auto it = (*container).find(name);
if (it != (*container).end())
{
int v = (int)cobj->getValue(RELATION, PlayerRelation::NEUTRAL);