summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 0161b6890..dbd9c6692 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -181,17 +181,16 @@ class SortBeingFunctor
} beingSorter;
ActorSpriteManager::ActorSpriteManager() :
- mMap(nullptr)
+ mMap(nullptr),
+ mSpellHeal1(serverConfig.getValue("spellHeal1", "#lum")),
+ mSpellHeal2(serverConfig.getValue("spellHeal2", "#inma")),
+ mSpellItenplz(serverConfig.getValue("spellItenplz", "#itenplz")),
+ mTargetDeadPlayers(config.getBoolValue("targetDeadPlayers")),
+ mTargetOnlyReachable(config.getBoolValue("targetOnlyReachable")),
+ mCyclePlayers(config.getBoolValue("cyclePlayers")),
+ mCycleMonsters(config.getBoolValue("cycleMonsters")),
+ mExtMouseTargeting(config.getBoolValue("extMouseTargeting"))
{
- mSpellHeal1 = serverConfig.getValue("spellHeal1", "#lum");
- mSpellHeal2 = serverConfig.getValue("spellHeal2", "#inma");
- mSpellItenplz = serverConfig.getValue("spellItenplz", "#itenplz");
- mTargetDeadPlayers = config.getBoolValue("targetDeadPlayers");
- mTargetOnlyReachable = config.getBoolValue("targetOnlyReachable");
- mCyclePlayers = config.getBoolValue("cyclePlayers");
- mCycleMonsters = config.getBoolValue("cycleMonsters");
- mExtMouseTargeting = config.getBoolValue("extMouseTargeting");
-
config.addListener("targetDeadPlayers", this);
config.addListener("targetOnlyReachable", this);
config.addListener("cyclePlayers", this);