summaryrefslogtreecommitdiff
path: root/src/net/eathena/npchandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/npchandler.cpp')
-rw-r--r--src/net/eathena/npchandler.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp
index 0d1e8f4f8..c4fd98dd9 100644
--- a/src/net/eathena/npchandler.cpp
+++ b/src/net/eathena/npchandler.cpp
@@ -55,6 +55,7 @@ NpcHandler::NpcHandler() :
SMSG_NPC_SHOW_PROGRESS_BAR,
SMSG_NPC_CLOSE_TIMEOUT,
SMSG_NPC_COMMAND,
+ SMSG_NPC_CHANGETITLE,
0
};
handledMessages = _messages;
@@ -109,6 +110,10 @@ void NpcHandler::handleMessage(Net::MessageIn &msg)
processNpcCommand(msg);
break;
+ case SMSG_NPC_CHANGETITLE:
+ processChangeTitle(msg);
+ break;
+
default:
break;
}
@@ -261,7 +266,8 @@ void NpcHandler::selectAutoSpell(const int skillId) const
int NpcHandler::getNpc(Net::MessageIn &msg)
{
if (msg.getId() == SMSG_NPC_CHOICE
- || msg.getId() == SMSG_NPC_MESSAGE)
+ || msg.getId() == SMSG_NPC_MESSAGE
+ || msg.getId() == SMSG_NPC_CHANGETITLE)
{
msg.readInt16("len");
}