summaryrefslogtreecommitdiff
path: root/src/net/eathena/maphandler.cpp
diff options
context:
space:
mode:
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