summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-28 21:53:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-28 21:53:24 +0300
commit22bb94a2587fa16d808ec966f01d07dc27d9f5d9 (patch)
treec2b6cc27c3bb420c32e2d8bacdd8f1634f85e419 /src/net/tmwa
parent510d030cbf0cca87e81801b1f484c24e8d4b7940 (diff)
downloadplus-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.gz
plus-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.bz2
plus-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.xz
plus-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.zip
Build mercenaryhandler only if eathena enabled.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/generalhandler.cpp4
-rw-r--r--src/net/tmwa/mercenaryhandler.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index 5acf3040c..9205db800 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -116,8 +116,8 @@ GeneralHandler::GeneralHandler() :
mHomunculusHandler(new HomunculusHandler),
mMailHandler(new MailHandler),
mMarketHandler(new MarketHandler),
-#endif
mMercenaryHandler(new MercenaryHandler),
+#endif
mVendingHandler(new VendingHandler),
mSearchStoreHandler(new SearchStoreHandler)
{
@@ -246,8 +246,8 @@ void GeneralHandler::load()
mNetwork->registerHandler(mHomunculusHandler);
mNetwork->registerHandler(mMailHandler);
mNetwork->registerHandler(mMarketHandler);
-#endif
mNetwork->registerHandler(mMercenaryHandler);
+#endif
mNetwork->registerHandler(mVendingHandler);
mNetwork->registerHandler(mSearchStoreHandler);
}
diff --git a/src/net/tmwa/mercenaryhandler.h b/src/net/tmwa/mercenaryhandler.h
index 5833ab68c..1d5a40b8a 100644
--- a/src/net/tmwa/mercenaryhandler.h
+++ b/src/net/tmwa/mercenaryhandler.h
@@ -21,6 +21,8 @@
#ifndef NET_TMWA_MERCENARYHANDLER_H
#define NET_TMWA_MERCENARYHANDLER_H
+#ifdef EATHENA_SUPPORT
+
#include "net/mercenaryhandler.h"
#include "net/tmwa/messagehandler.h"
@@ -57,4 +59,5 @@ class MercenaryHandler final : public MessageHandler,
} // namespace TmwAthena
+#endif // EATHENA_SUPPORT
#endif // NET_TMWA_MERCENARYHANDLER_H