diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-06-02 11:42:26 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-06-02 11:42:26 +0000 |
commit | 631c3e27bda7d0a10a01e74a92d5269cc5881dba (patch) | |
tree | fb2d0ee95033f53684ca7219715144489c761493 /src/net/equipmenthandler.cpp | |
parent | 2dfd979ea4c0c1a1046461ac21213d8211175c36 (diff) | |
download | mana-631c3e27bda7d0a10a01e74a92d5269cc5881dba.tar.gz mana-631c3e27bda7d0a10a01e74a92d5269cc5881dba.tar.bz2 mana-631c3e27bda7d0a10a01e74a92d5269cc5881dba.tar.xz mana-631c3e27bda7d0a10a01e74a92d5269cc5881dba.zip |
Merged handling for eAthena packets 0x00c3 and 0x01d7 and added support for
displaying a shield sprite (patch by Sanga).
Diffstat (limited to 'src/net/equipmenthandler.cpp')
-rw-r--r-- | src/net/equipmenthandler.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/net/equipmenthandler.cpp b/src/net/equipmenthandler.cpp index 84da9365..69f24d80 100644 --- a/src/net/equipmenthandler.cpp +++ b/src/net/equipmenthandler.cpp @@ -26,7 +26,6 @@ #include "messagein.h" #include "protocol.h" -#include "../being.h" #include "../beingmanager.h" #include "../equipment.h" #include "../item.h" @@ -40,7 +39,6 @@ EquipmentHandler::EquipmentHandler() static const Uint16 _messages[] = { SMSG_PLAYER_EQUIPMENT, SMSG_PLAYER_EQUIP, - 0x01d7, SMSG_PLAYER_UNEQUIP, SMSG_PLAYER_ARROW_EQUIP, SMSG_PLAYER_ATTACK_RANGE, @@ -55,7 +53,6 @@ void EquipmentHandler::handleMessage(MessageIn *msg) Sint16 index, equipPoint, itemId; Sint8 type; int mask, position; - Being *being; Item *item; switch (msg->getId()) @@ -127,23 +124,6 @@ void EquipmentHandler::handleMessage(MessageIn *msg) player_node->mEquipment->setEquipment(position, item); break; - case 0x01d7: - // Equipment related. At least confirmed to be required for weapon - // changes to appear on the local player. - being = beingManager->findBeing(msg->readInt32()); - msg->readInt8(); // equip point - itemId = msg->readInt16(); - msg->readInt16(); // item id 2 - logger->log("0x01d7 (%s, itemId = %d)", - (being == player_node) ? "player" : "somebody else", - itemId); - - if (!being) - break; - - being->setSprite(Being::WEAPON_SPRITE, itemId); - break; - case SMSG_PLAYER_UNEQUIP: index = msg->readInt16(); equipPoint = msg->readInt16(); |