diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-20 00:15:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-20 00:15:42 +0300 |
commit | f96919885dd0e5ae0de4a8517e76419304ca8d36 (patch) | |
tree | 2c39f6da9bd97c45d77c77f1b9ee0505f38be0e6 /src/net/tmwa | |
parent | 1dbf1cf1d87a38a327673b69c184ad662bd12cc4 (diff) | |
download | plus-f96919885dd0e5ae0de4a8517e76419304ca8d36.tar.gz plus-f96919885dd0e5ae0de4a8517e76419304ca8d36.tar.bz2 plus-f96919885dd0e5ae0de4a8517e76419304ca8d36.tar.xz plus-f96919885dd0e5ae0de4a8517e76419304ca8d36.zip |
Fix code style.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/charserverhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/gamehandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/inventoryhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/network.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 1 | ||||
-rw-r--r-- | src/net/tmwa/tradehandler.cpp | 7 |
7 files changed, 13 insertions, 7 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index 80fda81be..8f482047f 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -1624,7 +1624,7 @@ void BeingHandler::processPvpSet(Net::MessageIn &msg) if (dstBeing) { dstBeing->setPvpRank(rank); - dstBeing->setTeamId(teamId); + dstBeing->setTeamId(static_cast<uint16_t>(teamId)); dstBeing->addToCache(); } } diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index 859be0bed..959e51289 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -34,6 +34,8 @@ #include "net/character.h" #include "net/serverfeatures.h" +#include "net/ea/token.h" + #include "net/tmwa/gamehandler.h" #include "net/tmwa/loginhandler.h" #include "net/tmwa/messageout.h" diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp index f1d7cd748..75fffc77a 100644 --- a/src/net/tmwa/gamehandler.cpp +++ b/src/net/tmwa/gamehandler.cpp @@ -27,6 +27,8 @@ #include "being/localplayer.h" +#include "net/ea/token.h" + #include "net/tmwa/loginhandler.h" #include "net/tmwa/messageout.h" #include "net/tmwa/network.h" diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index 7f81ac461..40bb9a70f 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -22,11 +22,14 @@ #include "net/tmwa/inventoryhandler.h" +#include "item.h" + #include "notifymanager.h" #include "enums/equipslot.h" #include "being/localplayer.h" +#include "being/playerinfo.h" #include "listeners/arrowslistener.h" @@ -36,6 +39,7 @@ #include "net/tmwa/protocol.h" #include "net/ea/eaprotocol.h" +#include "net/ea/equipbackend.h" #include "resources/notifytypes.h" diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp index edaabcc4d..28760d2cc 100644 --- a/src/net/tmwa/network.cpp +++ b/src/net/tmwa/network.cpp @@ -52,7 +52,7 @@ Network::Network() : Network::~Network() { clearHandlers(); - delete2(mMessageHandlers); + delete2Arr(mMessageHandlers); mInstance = nullptr; } diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 8707c5212..6e638687a 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -23,6 +23,7 @@ #include "net/tmwa/playerhandler.h" #include "being/localplayer.h" +#include "being/playerinfo.h" #include "gui/windows/statuswindow.h" diff --git a/src/net/tmwa/tradehandler.cpp b/src/net/tmwa/tradehandler.cpp index f43c5b266..e48536874 100644 --- a/src/net/tmwa/tradehandler.cpp +++ b/src/net/tmwa/tradehandler.cpp @@ -30,7 +30,6 @@ #include "being/playerrelation.h" #include "being/playerrelations.h" -#include "gui/windows/confirmdialog.h" #include "gui/windows/tradewindow.h" #include "net/serverfeatures.h" @@ -49,7 +48,6 @@ extern Net::TradeHandler *tradeHandler; extern std::string tradePartnerName; -extern ConfirmDialog *confirmDlg; namespace TmwAthena { @@ -277,9 +275,8 @@ void TradeHandler::processTradeItemAddResponse(Net::MessageIn &msg) void TradeHandler::processTradeResponse(Net::MessageIn &msg) { - if (confirmDlg || tradePartnerName.empty() - || !player_relations.hasPermission(tradePartnerName, - PlayerRelation::TRADE)) + if (tradePartnerName.empty() || + !player_relations.hasPermission(tradePartnerName, PlayerRelation::TRADE)) { tradeHandler->respond(false); return; |