summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-31 00:58:18 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-31 00:58:18 +0300
commitf77a6feaee829ac7273faa119c07c6f3566deaef (patch)
treec95911eb33fc340884a901ec7a09e74b07c95f16 /src/net/tmwa
parentf28b8c5f50ea6aa3d9b7754dafa9bb56a7b791a9 (diff)
downloadplus-f77a6feaee829ac7273faa119c07c6f3566deaef.tar.gz
plus-f77a6feaee829ac7273faa119c07c6f3566deaef.tar.bz2
plus-f77a6feaee829ac7273faa119c07c6f3566deaef.tar.xz
plus-f77a6feaee829ac7273faa119c07c6f3566deaef.zip
Add support for clear npc dialog by command from server (evol only).
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/npchandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp
index c086cc7e4..6cd02c6e2 100644
--- a/src/net/tmwa/npchandler.cpp
+++ b/src/net/tmwa/npchandler.cpp
@@ -309,6 +309,11 @@ void NpcHandler::processNpcCommand(Net::MessageIn &msg, int npcId)
if (mDialog)
mDialog->setAvatarAction(msg.readInt32()); // direction
break;
+ case 9: // clear npc dialog
+ if (mDialog)
+ mDialog->clearRows();
+ break;
+
default:
logger->log("unknown npc command: %d", cmd);
break;