summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-03 17:32:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-03 17:32:39 +0300
commit074734bcb4fe6e556708c16c68120fe6d828ce17 (patch)
tree97c64009c25da2208f03699ed0ece3d154516fe9 /src
parent561f320aec5cde01d3024affc2f0d25e5d0033a6 (diff)
downloadmanaplus-074734bcb4fe6e556708c16c68120fe6d828ce17.tar.gz
manaplus-074734bcb4fe6e556708c16c68120fe6d828ce17.tar.bz2
manaplus-074734bcb4fe6e556708c16c68120fe6d828ce17.tar.xz
manaplus-074734bcb4fe6e556708c16c68120fe6d828ce17.zip
Add missing tmwa defines.
Diffstat (limited to 'src')
-rw-r--r--src/actormanager.cpp2
-rw-r--r--src/actormanager.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index ba6db8c63..59524b9e9 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -201,9 +201,11 @@ ActorManager::ActorManager() :
mBlockedBeings(),
mChars(),
mMap(nullptr),
+#ifdef TMWA_SUPPORT
mSpellHeal1(serverConfig.getValue("spellHeal1", "#lum")),
mSpellHeal2(serverConfig.getValue("spellHeal2", "#inma")),
mSpellItenplz(serverConfig.getValue("spellItenplz", "#itenplz")),
+#endif
mTargetDeadPlayers(config.getBoolValue("targetDeadPlayers")),
mTargetOnlyReachable(config.getBoolValue("targetOnlyReachable")),
mCyclePlayers(config.getBoolValue("cyclePlayers")),
diff --git a/src/actormanager.h b/src/actormanager.h
index 12ac788a4..20daab2cc 100644
--- a/src/actormanager.h
+++ b/src/actormanager.h
@@ -415,9 +415,11 @@ class ActorManager final: public ConfigListener
std::set<BeingId> mBlockedBeings;
std::map<int32_t, std::string> mChars;
Map *mMap;
+#ifdef TMWA_SUPPORT
std::string mSpellHeal1;
std::string mSpellHeal2;
std::string mSpellItenplz;
+#endif
bool mTargetDeadPlayers;
bool mTargetOnlyReachable;
bool mCyclePlayers;