From cf2a41b8a691e3ecfeef8289cb0a21989ceac882 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Jun 2015 18:18:03 +0300 Subject: Remove from tmwa namespace checks for haveItemColors. --- src/net/tmwa/npchandler.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/net/tmwa/npchandler.cpp') 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(amount), "amount"); - outMsg.writeInt16(static_cast(itemId), "item id"); - outMsg.writeInt8(color, "color"); - outMsg.writeInt8(0, "unused"); - } - else - { - outMsg.writeInt16(8, "len"); - outMsg.writeInt16(static_cast(amount), "amount"); - outMsg.writeInt16(static_cast(itemId), "item id"); - } + outMsg.writeInt16(8, "len"); + outMsg.writeInt16(static_cast(amount), "amount"); + outMsg.writeInt16(static_cast(itemId), "item id"); } void NpcHandler::sellItem(const BeingId beingId A_UNUSED, -- cgit v1.2.3-60-g2f50