diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-03 22:23:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-03 22:23:30 +0300 |
commit | 2b4fecc8a93722d3cb080edcae436c329641937b (patch) | |
tree | 23d2ec5dc93fda645b637de77d42924a87efd33b /src/net/ea/inventoryhandler.cpp | |
parent | 7758b86aaa0d368ef776ad826903a0b3bcc7102c (diff) | |
download | plus-2b4fecc8a93722d3cb080edcae436c329641937b.tar.gz plus-2b4fecc8a93722d3cb080edcae436c329641937b.tar.bz2 plus-2b4fecc8a93722d3cb080edcae436c329641937b.tar.xz plus-2b4fecc8a93722d3cb080edcae436c329641937b.zip |
Fix code style and remove some unused variabled.
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 04967b0a7..acd674d12 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -158,7 +158,8 @@ int InventoryHandler::getSlot(int eAthenaSlot) return EQUIP_POINTS[position]; } -void InventoryHandler::processPlayerInventory(Net::MessageIn &msg, bool playerInvintory) +void InventoryHandler::processPlayerInventory(Net::MessageIn &msg, + bool playerInvintory) { int index, amount, itemId, arrow; int cards[4], itemType; @@ -450,7 +451,7 @@ void InventoryHandler::processPlayerStorageAdd(Net::MessageIn &msg) { int index, amount, itemId, refine; unsigned char identified; - int cards[4]; +// int cards[4]; // Move an item into storage index = msg.readInt16() - STORAGE_OFFSET; @@ -460,7 +461,7 @@ void InventoryHandler::processPlayerStorageAdd(Net::MessageIn &msg) msg.readInt8(); // attribute refine = msg.readInt8(); for (int i = 0; i < 4; i++) - cards[i] = msg.readInt16(); + msg.readInt16(); // card i if (Item *item = mStorage->getItem(index)) { @@ -583,10 +584,10 @@ void InventoryHandler::processPlayerEquip(Net::MessageIn &msg) void InventoryHandler::processPlayerUnEquip(Net::MessageIn &msg) { - int index, equipType; + int equipType; int flag; - index = msg.readInt16() - INVENTORY_OFFSET; + msg.readInt16(); // inder val - INVENTORY_OFFSET; equipType = msg.readInt16(); flag = msg.readInt8(); |