diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-16 14:41:24 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-16 14:43:19 +0000 |
commit | 9dfc4ea2f30f43fb5ffd239b90b2a7259fbe0330 (patch) | |
tree | 37b2da3fc74946fb180b8e60d6e32b1190775a3f /src/npc.cpp | |
parent | a1a5ebb9ef14e013ae63a71c2c28609f2a65cdaa (diff) | |
download | mana-9dfc4ea2f30f43fb5ffd239b90b2a7259fbe0330.tar.gz mana-9dfc4ea2f30f43fb5ffd239b90b2a7259fbe0330.tar.bz2 mana-9dfc4ea2f30f43fb5ffd239b90b2a7259fbe0330.tar.xz mana-9dfc4ea2f30f43fb5ffd239b90b2a7259fbe0330.zip |
Add next/close buttons for NPCs
And keep the text dialog open for the whole transaction, logging user
input and keep a full record of text from the NPC (for the current
transaction only).
Diffstat (limited to 'src/npc.cpp')
-rw-r--r-- | src/npc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/npc.cpp b/src/npc.cpp index dfbc7d16..70b3ce13 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -144,10 +144,10 @@ void NPC::stringInput(const std::string &value) { MessageOut outMsg(mNetwork); outMsg.writeInt16(CMSG_NPC_STR_RESPONSE); - outMsg.writeInt16(value.length() + 8); + outMsg.writeInt16(value.length() + 9); outMsg.writeInt32(mId); outMsg.writeString(value, value.length()); - outMsg.writeInt8(0); // Just to be safe + outMsg.writeInt8(0); } /* |