summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-09-17 14:25:03 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-09-17 14:25:03 +0000
commit7d7ea134637eb06e194068f157d3eead90115631 (patch)
tree9ea5d90f07531d0c71f2dd8adf3a6ec956f2dffa /src/game.cpp
parent02e54bb74d2032abfbbdb17dc14d8d85664deb40 (diff)
downloadmana-7d7ea134637eb06e194068f157d3eead90115631.tar.gz
mana-7d7ea134637eb06e194068f157d3eead90115631.tar.bz2
mana-7d7ea134637eb06e194068f157d3eead90115631.tar.xz
mana-7d7ea134637eb06e194068f157d3eead90115631.zip
Indent properly.
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);