diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-09 13:26:59 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-09 13:28:24 -0600 |
commit | d605691a3fe219cde175eb68239bea91ae2d91fd (patch) | |
tree | 7386503438bf4590f6f7a9bdfd7a6a54ee6982a0 /src/gui/npc_text.cpp | |
parent | df1c392c03202866a809facefb378a12204a7c94 (diff) | |
download | mana-d605691a3fe219cde175eb68239bea91ae2d91fd.tar.gz mana-d605691a3fe219cde175eb68239bea91ae2d91fd.tar.bz2 mana-d605691a3fe219cde175eb68239bea91ae2d91fd.tar.xz mana-d605691a3fe219cde175eb68239bea91ae2d91fd.zip |
Send the correct packet for the NPC close button
Both packets do the same, but we should be explicit anyways. Also,
seperate out NPC client packets.
Diffstat (limited to 'src/gui/npc_text.cpp')
-rw-r--r-- | src/gui/npc_text.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/npc_text.cpp b/src/gui/npc_text.cpp index 954f22d8..61f3e510 100644 --- a/src/gui/npc_text.cpp +++ b/src/gui/npc_text.cpp @@ -126,6 +126,13 @@ void NpcTextDialog::nextDialog(int npcID) outMsg.writeInt32(npcID); } +void NpcTextDialog::closeDialog(int npcID) +{ + MessageOut outMsg(mNetwork); + outMsg.writeInt16(CMSG_NPC_CLOSE); + outMsg.writeInt32(npcID); +} + void NpcTextDialog::widgetResized(const gcn::Event &event) { Window::widgetResized(event); |