summaryrefslogtreecommitdiff
path: root/src/net/manaserv
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-03 23:13:07 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-03 23:13:07 +0200
commit9437d4943a8b299b057020ee114b230399965abd (patch)
tree54e8d1bca3c2f5457db8402fcdfe1b9e04df54f7 /src/net/manaserv
parentbb73cadd0afdc9fa55ea66ecedd8be53a6f3198e (diff)
downloadmanaverse-9437d4943a8b299b057020ee114b230399965abd.tar.gz
manaverse-9437d4943a8b299b057020ee114b230399965abd.tar.bz2
manaverse-9437d4943a8b299b057020ee114b230399965abd.tar.xz
manaverse-9437d4943a8b299b057020ee114b230399965abd.zip
Add colors to buy/sell dialogs.
Diffstat (limited to 'src/net/manaserv')
-rw-r--r--src/net/manaserv/buysellhandler.cpp3
-rw-r--r--src/net/manaserv/npchandler.cpp3
-rw-r--r--src/net/manaserv/npchandler.h2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/net/manaserv/buysellhandler.cpp b/src/net/manaserv/buysellhandler.cpp
index 07737e20b..a519125de 100644
--- a/src/net/manaserv/buysellhandler.cpp
+++ b/src/net/manaserv/buysellhandler.cpp
@@ -79,7 +79,8 @@ void BuySellHandler::handleMessage(Net::MessageIn &msg)
int itemId = msg.readInt16();
int amount = msg.readInt16();
int value = msg.readInt16();
- dialog->addItem(itemId, amount, value);
+ // colors not supported, using 1.
+ dialog->addItem(itemId, 1, amount, value);
}
break;
}
diff --git a/src/net/manaserv/npchandler.cpp b/src/net/manaserv/npchandler.cpp
index 3117f9455..2c389bc7d 100644
--- a/src/net/manaserv/npchandler.cpp
+++ b/src/net/manaserv/npchandler.cpp
@@ -209,7 +209,8 @@ void NpcHandler::sell(int beingId _UNUSED_)
// TODO
}
-void NpcHandler::buyItem(int beingId _UNUSED_, int itemId, int amount)
+void NpcHandler::buyItem(int beingId _UNUSED_, int itemId,
+ unsigned char color _UNUSED_, int amount)
{
MessageOut msg(PGMSG_NPC_BUYSELL);
msg.writeInt16(itemId);
diff --git a/src/net/manaserv/npchandler.h b/src/net/manaserv/npchandler.h
index faaff060c..6ecfb4e97 100644
--- a/src/net/manaserv/npchandler.h
+++ b/src/net/manaserv/npchandler.h
@@ -68,7 +68,7 @@ class NpcHandler : public MessageHandler, public Net::NpcHandler
void sell(int beingId);
- void buyItem(int beingId, int itemId, int amount);
+ void buyItem(int beingId, int itemId, unsigned char color, int amount);
void sellItem(int beingId, int itemId, int amount);