summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-05 17:46:02 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-05 20:56:16 +0300
commit12273c046fff6b2f778ef4c3cc0d8014d86233e5 (patch)
treee4dd0ca3b42c31883709dfcf0e85823e1f22479e /src/net
parent8db56130426f2c61e10219eddb67ee86bea82961 (diff)
downloadplus-12273c046fff6b2f778ef4c3cc0d8014d86233e5.tar.gz
plus-12273c046fff6b2f778ef4c3cc0d8014d86233e5.tar.bz2
plus-12273c046fff6b2f778ef4c3cc0d8014d86233e5.tar.xz
plus-12273c046fff6b2f778ef4c3cc0d8014d86233e5.zip
Impliment packet SMSG_NPC_CUTIN. Add support for cutins.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/npcrecv.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/eathena/npcrecv.cpp b/src/net/eathena/npcrecv.cpp
index 44b37cd50..617ceb9ba 100644
--- a/src/net/eathena/npcrecv.cpp
+++ b/src/net/eathena/npcrecv.cpp
@@ -24,6 +24,9 @@
#include "being/being.h"
+#include "enums/cutin.h"
+
+#include "gui/windows/cutinwindow.h"
#include "gui/windows/npcdialog.h"
#include "net/messagein.h"
@@ -39,10 +42,10 @@ namespace EAthena
void NpcRecv::processNpcCutin(Net::MessageIn &msg)
{
- UNIMPLIMENTEDPACKET;
Ea::NpcRecv::mRequestLang = false;
- msg.readString(64, "image name");
- msg.readUInt8("type");
+ const std::string image = msg.readString(64, "image name");
+ const CutIn cutin = fromInt(msg.readUInt8("type"), CutIn);
+ cutInWindow->show(image, cutin);
}
void NpcRecv::processNpcViewPoint(Net::MessageIn &msg)