summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-25 18:24:40 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-25 18:24:40 +0300
commit3dd279181c4eee649dabf57fae9d98dde666489a (patch)
treec68cfe7b0bee6c98e482c3f41f09b7097aca7d7f
parent56808acbf7824832864fffc84ef05b00de5f2df6 (diff)
downloadmanaplus-3dd279181c4eee649dabf57fae9d98dde666489a.tar.gz
manaplus-3dd279181c4eee649dabf57fae9d98dde666489a.tar.bz2
manaplus-3dd279181c4eee649dabf57fae9d98dde666489a.tar.xz
manaplus-3dd279181c4eee649dabf57fae9d98dde666489a.zip
Allow close npc dialog from npc commands.
-rw-r--r--src/net/tmwa/npchandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp
index eed10ab7c..d86c64a96 100644
--- a/src/net/tmwa/npchandler.cpp
+++ b/src/net/tmwa/npchandler.cpp
@@ -288,6 +288,9 @@ void NpcHandler::processNpcCommand(Net::MessageIn &msg, int npcId)
viewport->moveCameraRelative(x, y);
}
break;
+ case 5:
+ closeDialog(npcId);
+ break;
default:
logger->log("unknown npc command: %d", cmd);