summaryrefslogtreecommitdiff
path: root/src/net/eathena/maphandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-26 00:09:51 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-26 00:09:51 +0300
commitb6d97f404432d9cf6c84538c4d5f6f14e078ade3 (patch)
tree10339eb71797c794fa6ebd5e6371d1bb1494353a /src/net/eathena/maphandler.cpp
parent4e2ceec09d767063ade469e6cb810a06d1e6249d (diff)
downloadplus-b6d97f404432d9cf6c84538c4d5f6f14e078ade3.tar.gz
plus-b6d97f404432d9cf6c84538c4d5f6f14e078ade3.tar.bz2
plus-b6d97f404432d9cf6c84538c4d5f6f14e078ade3.tar.xz
plus-b6d97f404432d9cf6c84538c4d5f6f14e078ade3.zip
Add packet CMSG_CAMERA_INFO 0x0a77
Diffstat (limited to 'src/net/eathena/maphandler.cpp')
-rw-r--r--src/net/eathena/maphandler.cpp16
1 files changed, 16 insertions, 0 deletions
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