diff options
-rw-r--r-- | src/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/Makefile.am | 6 | ||||
-rw-r--r-- | src/actions/actions.cpp | 2 | ||||
-rw-r--r-- | src/net/buyingstorehandler.h | 3 | ||||
-rw-r--r-- | src/net/tmwa/buyingstorehandler.h | 3 |
5 files changed, 14 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1167ba997..99bd0a3ab 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1324,8 +1324,6 @@ SET(SRCS_TMWA net/tmwa/cashshophandler.h net/tmwa/beinghandler.cpp net/tmwa/beinghandler.h - net/tmwa/buyingstorehandler.cpp - net/tmwa/buyingstorehandler.h net/tmwa/buysellhandler.cpp net/tmwa/buysellhandler.h net/tmwa/charserverhandler.cpp @@ -1414,10 +1412,13 @@ SET(SRCS_EATHENA listeners/vendingslotslistener.h net/auctionhandler.h net/bankhandler.h + net/buyingstorehandler.h net/tmwa/auctionhandler.cpp net/tmwa/auctionhandler.h net/tmwa/bankhandler.cpp net/tmwa/bankhandler.h + net/tmwa/buyingstorehandler.cpp + net/tmwa/buyingstorehandler.h net/eathena/adminhandler.cpp net/eathena/adminhandler.h net/eathena/auctionhandler.cpp diff --git a/src/Makefile.am b/src/Makefile.am index b8046e64b..80d4128c5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -647,7 +647,6 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \ net/adminhandler.h \ net/cashshophandler.h \ net/beinghandler.h \ - net/buyingstorehandler.h \ net/buysellhandler.h \ net/character.h \ net/charserverhandler.cpp \ @@ -1259,8 +1258,6 @@ manaplus_SOURCES += \ net/tmwa/cashshophandler.h \ net/tmwa/beinghandler.cpp \ net/tmwa/beinghandler.h \ - net/tmwa/buyingstorehandler.cpp \ - net/tmwa/buyingstorehandler.h \ net/tmwa/buysellhandler.cpp \ net/tmwa/buysellhandler.h \ net/tmwa/charserverhandler.cpp \ @@ -1350,10 +1347,13 @@ manaplus_SOURCES += gui/windows/bankwindow.cpp \ listeners/vendingslotslistener.h \ net/auctionhandler.h \ net/bankhandler.h \ + net/buyingstorehandler.h \ net/tmwa/auctionhandler.cpp \ net/tmwa/auctionhandler.h \ net/tmwa/bankhandler.cpp \ net/tmwa/bankhandler.h \ + net/tmwa/buyingstorehandler.cpp \ + net/tmwa/buyingstorehandler.h \ net/eathena/adminhandler.cpp \ net/eathena/adminhandler.h \ net/eathena/auctionhandler.cpp \ diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 965702539..f673d43b4 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -672,9 +672,11 @@ impHandler(sell) } else if (being->getType() == ActorType::Player) { +#ifdef EATHENA_SUPPORT if (serverFeatures->haveVending()) buyingStoreHandler->open(being); else +#endif buySellHandler->requestBuyList(being->getName()); return true; } diff --git a/src/net/buyingstorehandler.h b/src/net/buyingstorehandler.h index 321cd9ec1..324dea271 100644 --- a/src/net/buyingstorehandler.h +++ b/src/net/buyingstorehandler.h @@ -21,6 +21,8 @@ #ifndef NET_BUYINGSTOREHANDLER_H #define NET_BUYINGSTOREHANDLER_H +#ifdef EATHENA_SUPPORT + #include <string> #include <vector> @@ -58,4 +60,5 @@ class BuyingStoreHandler notfinal extern Net::BuyingStoreHandler *buyingStoreHandler; +#endif // EATHENA_SUPPORT #endif // NET_BUYINGSTOREHANDLER_H diff --git a/src/net/tmwa/buyingstorehandler.h b/src/net/tmwa/buyingstorehandler.h index 381fe5c1a..dc1b408bb 100644 --- a/src/net/tmwa/buyingstorehandler.h +++ b/src/net/tmwa/buyingstorehandler.h @@ -21,6 +21,8 @@ #ifndef NET_TMWA_BUYINGSTOREHANDLER_H #define NET_TMWA_BUYINGSTOREHANDLER_H +#ifdef EATHENA_SUPPORT + #include "net/buyingstorehandler.h" #include "net/tmwa/messagehandler.h" @@ -55,4 +57,5 @@ class BuyingStoreHandler final : public MessageHandler, } // namespace TmwAthena +#endif // EATHENA_SUPPORT #endif // NET_TMWA_BUYINGSTOREHANDLER_H |