summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 31b82b67..f2f86064 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -666,15 +666,16 @@ void do_input()
{
// Player default: trade
case Being::PLAYER:
- {
- if (target != player_node) {
- MessageOut outMsg;
- outMsg.writeShort(0x00e4);
- outMsg.writeLong(target->getId());
- writeSet(6);
- tradePartnerName = target->getName();
+ {
+ if (target != player_node)
+ {
+ MessageOut outMsg;
+ outMsg.writeShort(CMSG_TRADE_REQUEST);
+ outMsg.writeLong(target->getId());
+ writeSet(6);
+ tradePartnerName = target->getName();
+ }
}
- }
break;
// NPC default: talk
@@ -682,7 +683,7 @@ void do_input()
if (!current_npc)
{
MessageOut outMsg;
- outMsg.writeShort(0x0090);
+ outMsg.writeShort(CMSG_NPC_TALK);
outMsg.writeLong(target->getId());
outMsg.writeByte(0);
writeSet(7);