summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-27 00:56:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-27 01:51:18 +0300
commit6901946dcbe81192560a80c20b1e787b11579ebc (patch)
tree43dffc0130d09b9d0b93e1f97dd856718fb2b799 /src/net/tmwa
parente13a1fc1d45c009badc10b4ec4a72bbbcf6fe592 (diff)
downloadmanaverse-6901946dcbe81192560a80c20b1e787b11579ebc.tar.gz
manaverse-6901946dcbe81192560a80c20b1e787b11579ebc.tar.bz2
manaverse-6901946dcbe81192560a80c20b1e787b11579ebc.tar.xz
manaverse-6901946dcbe81192560a80c20b1e787b11579ebc.zip
Build elementalhandler only if eathena enabled.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/elementalhandler.h3
-rw-r--r--src/net/tmwa/generalhandler.cpp10
-rw-r--r--src/net/tmwa/generalhandler.h2
3 files changed, 10 insertions, 5 deletions
diff --git a/src/net/tmwa/elementalhandler.h b/src/net/tmwa/elementalhandler.h
index 0f4e8b7d3..bacb7260e 100644
--- a/src/net/tmwa/elementalhandler.h
+++ b/src/net/tmwa/elementalhandler.h
@@ -21,6 +21,8 @@
#ifndef NET_TMWA_ELEMENTALHANDLER_H
#define NET_TMWA_ELEMENTALHANDLER_H
+#ifdef EATHENA_SUPPORT
+
#include "net/elementalhandler.h"
#include "net/tmwa/messagehandler.h"
@@ -40,4 +42,5 @@ class ElementalHandler final : public MessageHandler,
} // namespace TmwAthena
+#endif // EATHENA_SUPPORT
#endif // NET_TMWA_ELEMENTALHANDLER_H
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index 1739aef45..bf36f1fc3 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -111,12 +111,12 @@ GeneralHandler::GeneralHandler() :
mBankHandler(new BankHandler),
mBuyingStoreHandler(new BuyingStoreHandler),
mCashShopHandler(new CashShopHandler),
+ mElementalHandler(new ElementalHandler),
#endif
mFamilyHandler(new FamilyHandler),
mMercenaryHandler(new MercenaryHandler),
mHomunculusHandler(new HomunculusHandler),
mFriendsHandler(new FriendsHandler),
- mElementalHandler(new ElementalHandler),
mMarketHandler(new MarketHandler),
mVendingHandler(new VendingHandler),
mSearchStoreHandler(new SearchStoreHandler)
@@ -236,15 +236,17 @@ void GeneralHandler::load()
mNetwork->registerHandler(mPetHandler);
mNetwork->registerHandler(mQuestHandler);
mNetwork->registerHandler(mMailHandler);
+#ifdef EATHENA_SUPPORT
mNetwork->registerHandler(mAuctionHandler);
+ mNetwork->registerHandler(mBankHandler);
+ mNetwork->registerHandler(mBuyingStoreHandler);
mNetwork->registerHandler(mCashShopHandler);
+ mNetwork->registerHandler(mElementalHandler);
+#endif
mNetwork->registerHandler(mFamilyHandler);
- mNetwork->registerHandler(mBankHandler);
mNetwork->registerHandler(mMercenaryHandler);
- mNetwork->registerHandler(mBuyingStoreHandler);
mNetwork->registerHandler(mHomunculusHandler);
mNetwork->registerHandler(mFriendsHandler);
- mNetwork->registerHandler(mElementalHandler);
mNetwork->registerHandler(mMarketHandler);
mNetwork->registerHandler(mVendingHandler);
mNetwork->registerHandler(mSearchStoreHandler);
diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h
index 292ce6dd7..08ef109a9 100644
--- a/src/net/tmwa/generalhandler.h
+++ b/src/net/tmwa/generalhandler.h
@@ -87,12 +87,12 @@ class GeneralHandler final : public MessageHandler,
MessageHandlerPtr mBankHandler;
MessageHandlerPtr mBuyingStoreHandler;
MessageHandlerPtr mCashShopHandler;
+ MessageHandlerPtr mElementalHandler;
#endif
MessageHandlerPtr mFamilyHandler;
MessageHandlerPtr mMercenaryHandler;
MessageHandlerPtr mHomunculusHandler;
MessageHandlerPtr mFriendsHandler;
- MessageHandlerPtr mElementalHandler;
MessageHandlerPtr mMarketHandler;
MessageHandlerPtr mVendingHandler;
MessageHandlerPtr mSearchStoreHandler;