diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-18 19:41:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-18 19:41:29 +0300 |
commit | 01b26b05ec787cb8cbfce27474362f5c29650f60 (patch) | |
tree | b1cc26b1ef4f6745d5b607df1093bb070f3939bb /src/net | |
parent | 3b999f51c740d0541c53d223518e5e4bb482d996 (diff) | |
download | plus-01b26b05ec787cb8cbfce27474362f5c29650f60.tar.gz plus-01b26b05ec787cb8cbfce27474362f5c29650f60.tar.bz2 plus-01b26b05ec787cb8cbfce27474362f5c29650f60.tar.xz plus-01b26b05ec787cb8cbfce27474362f5c29650f60.zip |
Fix compilation warnings.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/beinghandler.h | 3 | ||||
-rw-r--r-- | src/net/buysellhandler.h | 3 | ||||
-rw-r--r-- | src/net/ea/partyhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/ea/specialhandler.cpp | 3 | ||||
-rw-r--r-- | src/net/tmwa/messagein.cpp | 4 | ||||
-rw-r--r-- | src/net/tradehandler.h | 3 |
6 files changed, 9 insertions, 9 deletions
diff --git a/src/net/beinghandler.h b/src/net/beinghandler.h index 07279b148..bc1491ada 100644 --- a/src/net/beinghandler.h +++ b/src/net/beinghandler.h @@ -32,6 +32,9 @@ namespace Net class BeingHandler { public: + virtual ~BeingHandler() + { } + virtual void handleMessage(Net::MessageIn &msg) = 0; virtual void requestNameById(int id) = 0; diff --git a/src/net/buysellhandler.h b/src/net/buysellhandler.h index 213da227d..ad70c2884 100644 --- a/src/net/buysellhandler.h +++ b/src/net/buysellhandler.h @@ -34,6 +34,9 @@ namespace Net class BuySellHandler { public: + virtual ~BuySellHandler() + { } + virtual void handleMessage(Net::MessageIn &msg) = 0; virtual void requestSellList(std::string nick) = 0; virtual void requestBuyList(std::string nick) = 0; diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index e006b9c71..36e192ce8 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -34,8 +34,6 @@ #include "debug.h" -#define PARTY_ID 1 - namespace Ea { diff --git a/src/net/ea/specialhandler.cpp b/src/net/ea/specialhandler.cpp index 4f0f22aed..b78531434 100644 --- a/src/net/ea/specialhandler.cpp +++ b/src/net/ea/specialhandler.cpp @@ -50,8 +50,6 @@ #define BSKILL_CREATECHAT 0x0003 #define BSKILL_JOINPARTY 0x0004 #define BSKILL_SHOUT 0x0005 -#define BSKILL_PK 0x0006 // ?? -#define BSKILL_SETALLIGN 0x0007 // ?? /** reasons why action failed */ #define RFAIL_SKILLDEP 0x00 @@ -64,7 +62,6 @@ #define RFAIL_REDGEM 0x07 #define RFAIL_BLUEGEM 0x08 #define RFAIL_OVERWEIGHT 0x09 -#define RFAIL_GENERIC 0x0a /** should always be zero if failed */ #define SKILL_FAILED 0x00 diff --git a/src/net/tmwa/messagein.cpp b/src/net/tmwa/messagein.cpp index fb1986597..5a9d39211 100644 --- a/src/net/tmwa/messagein.cpp +++ b/src/net/tmwa/messagein.cpp @@ -33,10 +33,6 @@ #include "debug.h" -#define MAKEWORD(low, high) \ - ((unsigned short)(((unsigned char)(low)) | \ - ((unsigned short)((unsigned char)(high))) << 8)) - namespace TmwAthena { diff --git a/src/net/tradehandler.h b/src/net/tradehandler.h index 837c53eeb..f099efe53 100644 --- a/src/net/tradehandler.h +++ b/src/net/tradehandler.h @@ -38,6 +38,9 @@ namespace Net class TradeHandler { public: + virtual ~TradeHandler() + { } + virtual void request(Being *being A_UNUSED) { } // virtual ~TradeHandler() {} |