diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-25 18:38:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-25 18:38:52 +0300 |
commit | 3d447679df26179b7ffa781c34f5277e6a1aec29 (patch) | |
tree | 242365d32770a89448130684ad7ed2bf00c22561 /src/being.cpp | |
parent | 8c8f9f6cf53a6d5b8d9d72f4860921b3325a7696 (diff) | |
download | manaplus-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.gz manaplus-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.bz2 manaplus-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.xz manaplus-3d447679df26179b7ffa781c34f5277e6a1aec29.zip |
Dont compile manaserv related code if manaserv support disabled.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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<int>(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: |