diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-27 00:56:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-27 01:51:18 +0300 |
commit | 6901946dcbe81192560a80c20b1e787b11579ebc (patch) | |
tree | 43dffc0130d09b9d0b93e1f97dd856718fb2b799 /src/net/tmwa/generalhandler.cpp | |
parent | e13a1fc1d45c009badc10b4ec4a72bbbcf6fe592 (diff) | |
download | plus-6901946dcbe81192560a80c20b1e787b11579ebc.tar.gz plus-6901946dcbe81192560a80c20b1e787b11579ebc.tar.bz2 plus-6901946dcbe81192560a80c20b1e787b11579ebc.tar.xz plus-6901946dcbe81192560a80c20b1e787b11579ebc.zip |
Build elementalhandler only if eathena enabled.
Diffstat (limited to 'src/net/tmwa/generalhandler.cpp')
-rw-r--r-- | src/net/tmwa/generalhandler.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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); |