diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-20 18:18:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-20 18:18:03 +0300 |
commit | cf2a41b8a691e3ecfeef8289cb0a21989ceac882 (patch) | |
tree | 4074a3935525877ca5e01bab48714ea5f930d541 /src/net/tmwa/npchandler.cpp | |
parent | a111555bd7dbb939673f25f1e8a1f211f61250ad (diff) | |
download | plus-cf2a41b8a691e3ecfeef8289cb0a21989ceac882.tar.gz plus-cf2a41b8a691e3ecfeef8289cb0a21989ceac882.tar.bz2 plus-cf2a41b8a691e3ecfeef8289cb0a21989ceac882.tar.xz plus-cf2a41b8a691e3ecfeef8289cb0a21989ceac882.zip |
Remove from tmwa namespace checks for haveItemColors.
Diffstat (limited to 'src/net/tmwa/npchandler.cpp')
-rw-r--r-- | src/net/tmwa/npchandler.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp index 61a4cf188..efabfff2e 100644 --- a/src/net/tmwa/npchandler.cpp +++ b/src/net/tmwa/npchandler.cpp @@ -184,20 +184,9 @@ void NpcHandler::buyItem(const BeingId beingId A_UNUSED, const int amount) const { createOutPacket(CMSG_NPC_BUY_REQUEST); - if (serverFeatures->haveItemColors()) - { - outMsg.writeInt16(10, "len"); - outMsg.writeInt16(static_cast<int16_t>(amount), "amount"); - outMsg.writeInt16(static_cast<int16_t>(itemId), "item id"); - outMsg.writeInt8(color, "color"); - outMsg.writeInt8(0, "unused"); - } - else - { - outMsg.writeInt16(8, "len"); - outMsg.writeInt16(static_cast<int16_t>(amount), "amount"); - outMsg.writeInt16(static_cast<int16_t>(itemId), "item id"); - } + outMsg.writeInt16(8, "len"); + outMsg.writeInt16(static_cast<int16_t>(amount), "amount"); + outMsg.writeInt16(static_cast<int16_t>(itemId), "item id"); } void NpcHandler::sellItem(const BeingId beingId A_UNUSED, |