From b6d97f404432d9cf6c84538c4d5f6f14e078ade3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 26 Jan 2019 00:09:51 +0300 Subject: Add packet CMSG_CAMERA_INFO 0x0a77 --- src/net/eathena/maphandler.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/net/eathena/maphandler.cpp') diff --git a/src/net/eathena/maphandler.cpp b/src/net/eathena/maphandler.cpp index 433e95d36..7054949f2 100644 --- a/src/net/eathena/maphandler.cpp +++ b/src/net/eathena/maphandler.cpp @@ -25,6 +25,8 @@ #include "debug.h" +extern int packetVersion; + namespace EAthena { @@ -50,4 +52,18 @@ void MapHandler::destroyInstance() const outMsg.writeInt32(3, "command"); } +void MapHandler::camera(int action, + float range, + float rotation, + float latitude) const +{ + if (packetVersion < 20160525) + return; + createOutPacket(CMSG_CAMERA_INFO); + outMsg.writeInt8(action, "action"); + outMsg.writeFloat(range, "range"); + outMsg.writeFloat(rotation, "rotation"); + outMsg.writeFloat(latitude, "latitude"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2