summaryrefslogtreecommitdiff
path: root/src/net/tmwa/generalhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-28 22:56:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-28 22:57:51 +0300
commit2490ef610773ad1c7adf33a28b2fc982b2b8ee7e (patch)
treee84fa69940813b4e00966ed6dbf595222120b889 /src/net/tmwa/generalhandler.cpp
parent631e52266a80983046a61d68648becd9f3656ff7 (diff)
downloadmv-2490ef610773ad1c7adf33a28b2fc982b2b8ee7e.tar.gz
mv-2490ef610773ad1c7adf33a28b2fc982b2b8ee7e.tar.bz2
mv-2490ef610773ad1c7adf33a28b2fc982b2b8ee7e.tar.xz
mv-2490ef610773ad1c7adf33a28b2fc982b2b8ee7e.zip
Build vendinghandler only if eathena enabled.
Diffstat (limited to 'src/net/tmwa/generalhandler.cpp')
-rw-r--r--src/net/tmwa/generalhandler.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index 3326ae3e7..921b30f7a 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -104,8 +104,8 @@ GeneralHandler::GeneralHandler() :
mSkillHandler(new SkillHandler),
mTradeHandler(new TradeHandler),
mQuestHandler(new QuestHandler),
- mServerFeatures(new ServerFeatures),
#ifdef EATHENA_SUPPORT
+ mServerFeatures(new ServerFeatures),
mAuctionHandler(new AuctionHandler),
mBankHandler(new BankHandler),
mBuyingStoreHandler(new BuyingStoreHandler),
@@ -118,8 +118,10 @@ GeneralHandler::GeneralHandler() :
mMarketHandler(new MarketHandler),
mMercenaryHandler(new MercenaryHandler),
mSearchStoreHandler(new SearchStoreHandler),
-#endif
mVendingHandler(new VendingHandler)
+#else
+ mServerFeatures(new ServerFeatures)
+#endif
{
static const uint16_t _messages[] =
{
@@ -248,8 +250,8 @@ void GeneralHandler::load()
mNetwork->registerHandler(mMarketHandler);
mNetwork->registerHandler(mMercenaryHandler);
mNetwork->registerHandler(mSearchStoreHandler);
-#endif
mNetwork->registerHandler(mVendingHandler);
+#endif
}
void GeneralHandler::reload()