summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-27 00:11:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-27 00:20:29 +0300
commit6a5aad6c537322ac5b54cde85271a560579d17ca (patch)
treec91643642ccff2e4f45e10b982cc512bc420bb1a /src/net/tmwa
parentbf966d287a973ad9134c31d8c37cb471832088d2 (diff)
downloadmv-6a5aad6c537322ac5b54cde85271a560579d17ca.tar.gz
mv-6a5aad6c537322ac5b54cde85271a560579d17ca.tar.bz2
mv-6a5aad6c537322ac5b54cde85271a560579d17ca.tar.xz
mv-6a5aad6c537322ac5b54cde85271a560579d17ca.zip
Build auctionhandler only if eathena enabled.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/auctionhandler.h3
-rw-r--r--src/net/tmwa/generalhandler.cpp2
-rw-r--r--src/net/tmwa/generalhandler.h2
3 files changed, 7 insertions, 0 deletions
diff --git a/src/net/tmwa/auctionhandler.h b/src/net/tmwa/auctionhandler.h
index 5f793a78d..01e1428d7 100644
--- a/src/net/tmwa/auctionhandler.h
+++ b/src/net/tmwa/auctionhandler.h
@@ -21,6 +21,8 @@
#ifndef NET_TMWA_AUCTIONHANDLER_H
#define NET_TMWA_AUCTIONHANDLER_H
+#ifdef EATHENA_SUPPORT
+
#include "net/auctionhandler.h"
#include "net/tmwa/messagehandler.h"
@@ -65,4 +67,5 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler
} // namespace TmwAthena
+#endif // EATHENA_SUPPORT
#endif // NET_TMWA_AUCTIONHANDLER_H
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index 359cc5492..9a0ccd921 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -106,7 +106,9 @@ GeneralHandler::GeneralHandler() :
mQuestHandler(new QuestHandler),
mServerFeatures(new ServerFeatures),
mMailHandler(new MailHandler),
+#ifdef EATHENA_SUPPORT
mAuctionHandler(new AuctionHandler),
+#endif
mCashShopHandler(new CashShopHandler),
mFamilyHandler(new FamilyHandler),
mBankHandler(new BankHandler),
diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h
index 01eda4145..1acc42a9e 100644
--- a/src/net/tmwa/generalhandler.h
+++ b/src/net/tmwa/generalhandler.h
@@ -82,7 +82,9 @@ class GeneralHandler final : public MessageHandler,
MessageHandlerPtr mQuestHandler;
ServerFeatures *mServerFeatures;
MessageHandlerPtr mMailHandler;
+#ifdef EATHENA_SUPPORT
MessageHandlerPtr mAuctionHandler;
+#endif
MessageHandlerPtr mCashShopHandler;
MessageHandlerPtr mFamilyHandler;
MessageHandlerPtr mBankHandler;