summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-06 00:04:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-06 00:04:33 +0300
commit7b155f111daf5d7ae477b16d0f0789b1113bea74 (patch)
tree2d2711ab1f9daed793171383af1a7e1fa6ff737c /src/actorspritemanager.cpp
parentc3afff20d4989ab2835545715bbe67e5b5d9b353 (diff)
downloadmv-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.gz
mv-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.bz2
mv-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.xz
mv-7b155f111daf5d7ae477b16d0f0789b1113bea74.zip
Fix some issues after auto checking.
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);