diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-24 23:03:31 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-24 23:03:31 -0700 |
commit | a1e483913672e55704e8fbafeff5ea0ccc0c9b07 (patch) | |
tree | 47cd4487c4b3e14d3bbb1b94c25cef4c55b10ef3 /src/net/npchandler.cpp | |
parent | e85269ffe1fe91f5cf44ccfec01252343643ef1d (diff) | |
download | mana-client-a1e483913672e55704e8fbafeff5ea0ccc0c9b07.tar.gz mana-client-a1e483913672e55704e8fbafeff5ea0ccc0c9b07.tar.bz2 mana-client-a1e483913672e55704e8fbafeff5ea0ccc0c9b07.tar.xz mana-client-a1e483913672e55704e8fbafeff5ea0ccc0c9b07.zip |
Cleaned up some code, as well as removed redundant talk client requesting
(which would happen from using the keyboard instead of the mouse).
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/net/npchandler.cpp')
-rw-r--r-- | src/net/npchandler.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/net/npchandler.cpp b/src/net/npchandler.cpp index 8425a215..94e145b4 100644 --- a/src/net/npchandler.cpp +++ b/src/net/npchandler.cpp @@ -33,11 +33,6 @@ #include "../gui/npclistdialog.h" #include "../gui/npcstringdialog.h" -extern NpcIntegerDialog *npcIntegerDialog; -extern NpcListDialog *npcListDialog; -extern NpcTextDialog *npcTextDialog; -extern NpcStringDialog *npcStringDialog; - NPCHandler::NPCHandler() { static const Uint16 _messages[] = { @@ -81,10 +76,12 @@ void NPCHandler::handleMessage(MessageIn *msg) id = msg->readInt32(); if (current_npc == dynamic_cast<NPC*>(beingManager->findBeing(id))) current_npc = NULL; + NPC::mTalking = false; break; case SMSG_NPC_NEXT: // Next button in NPC dialog, currently unused + NPC::mTalking = false; break; case SMSG_NPC_INT_INPUT: |