From 3d447679df26179b7ffa781c34f5277e6a1aec29 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Apr 2011 18:38:52 +0300 Subject: Dont compile manaserv related code if manaserv support disabled. --- src/being.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index bfd06f2f0..3a7f08dda 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -893,6 +893,7 @@ void Being::setAction(Action action, int attackType _UNUSED_) currentAction = mInfo->getAttack(attackType)->action; reset(); +#ifdef MANASERV_SUPPORT if (Net::getNetworkType() == ServerInfo::MANASERV && mInfo->getAttack(attackType)) { @@ -920,6 +921,7 @@ void Being::setAction(Action action, int attackType _UNUSED_) } } } +#endif } break; @@ -1082,6 +1084,7 @@ void Being::logic() } int frameCount = static_cast(getFrameCount()); +#ifdef MANASERV_SUPPORT if ((Net::getNetworkType() == ServerInfo::MANASERV) && (mAction != DEAD)) { const Vector dest = (mPath.empty()) ? @@ -1163,9 +1166,10 @@ void Being::logic() setAction(STAND); } } - else if (Net::getNetworkType() == ServerInfo::TMWATHENA) + else +#endif + if (Net::getNetworkType() == ServerInfo::TMWATHENA) { - switch (mAction) { case STAND: -- cgit v1.2.3-60-g2f50