diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-09-17 14:25:03 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-09-17 14:25:03 +0000 |
commit | 7d7ea134637eb06e194068f157d3eead90115631 (patch) | |
tree | 9ea5d90f07531d0c71f2dd8adf3a6ec956f2dffa /src/game.cpp | |
parent | 02e54bb74d2032abfbbdb17dc14d8d85664deb40 (diff) | |
download | mana-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.cpp | 19 |
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); |