summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-04 01:58:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-04 01:58:51 +0300
commitf2013e1e567d2a91be8b696cdd1db3edd5906f99 (patch)
tree20d0288ea17f2da33b4887f0e8734063ca7134a5 /src/actormanager.cpp
parentf74e2b6c8b019bceb02e25aa53e988918fd5d278 (diff)
downloadmanaplus-f2013e1e567d2a91be8b696cdd1db3edd5906f99.tar.gz
manaplus-f2013e1e567d2a91be8b696cdd1db3edd5906f99.tar.bz2
manaplus-f2013e1e567d2a91be8b696cdd1db3edd5906f99.tar.xz
manaplus-f2013e1e567d2a91be8b696cdd1db3edd5906f99.zip
Add some missing tmwa defines. Fix compilation error without tmwa support.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 59bfb9708..be9f6e7a6 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -309,7 +309,9 @@ Being *ActorManager::createBeing(const BeingId id,
break;
default:
case ActorType::FloorItem:
+#ifdef TMWA_SUPPORT
case ActorType::LocalPet:
+#endif
case ActorType::Avatar:
case ActorType::Unknown:
reportAlways("CreateBeing for unknown type %d", CAST_S32(type));
@@ -1391,6 +1393,7 @@ bool ActorManager::validateBeing(const Being *const aroundBeing,
|| localPlayer->isReachable(being, maxCost));
}
+#ifdef TMWA_SUPPORT
void ActorManager::healTarget() const
{
if (!localPlayer)
@@ -1482,6 +1485,7 @@ void ActorManager::heal(const Being *const target) const
}
}
}
+#endif // TMWA_SUPPORT
Being* ActorManager::findMostDamagedPlayer(const int maxTileDist) const
{