diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-12-16 05:17:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-12-16 06:20:22 +0300 |
commit | a0f8fc8cd4a4bd6e245848835db2775596b9362f (patch) | |
tree | ad8f03439fee3795f7c023a8db85bd62e3364ed3 /src | |
parent | 08d9a2d55e4e5fb067b3f615a6c203cbff77f44e (diff) | |
download | hercules-a0f8fc8cd4a4bd6e245848835db2775596b9362f.tar.gz hercules-a0f8fc8cd4a4bd6e245848835db2775596b9362f.tar.bz2 hercules-a0f8fc8cd4a4bd6e245848835db2775596b9362f.tar.xz hercules-a0f8fc8cd4a4bd6e245848835db2775596b9362f.zip |
Update packet ZC_CAMERA_INFO to new format.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 4 | ||||
-rw-r--r-- | src/map/packets_struct.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 4e4e5ab8c..e9c69257b 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -22125,7 +22125,7 @@ static void clif_camera_showWindow(struct map_session_data *sd) #if PACKETVER >= 20160525 nullpo_retv(sd); struct PACKET_ZC_CAMERA_INFO p; - p.packetType = 0xa78; + p.packetType = HEADER_ZC_CAMERA_INFO; p.action = 1; p.range = 0; p.rotation = 0; @@ -22139,7 +22139,7 @@ static void clif_camera_change(struct map_session_data *sd, float range, float r #if PACKETVER >= 20160525 nullpo_retv(sd); struct PACKET_ZC_CAMERA_INFO p; - p.packetType = 0xa78; + p.packetType = HEADER_ZC_CAMERA_INFO; p.action = 0; p.range = range; p.rotation = rotation; diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 9b82d82b9..8fbe64e5f 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -2896,6 +2896,7 @@ struct PACKET_ZC_REMOVE_EFFECT { uint32 effectId; } __attribute__((packed)); +#if PACKETVER >= 20160525 struct PACKET_ZC_CAMERA_INFO { int16 packetType; int8 action; @@ -2903,6 +2904,8 @@ struct PACKET_ZC_CAMERA_INFO { float rotation; float latitude; } __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_CAMERA_INFO, 0x0a78); +#endif #if PACKETVER_MAIN_NUM >= 20181128 || PACKETVER_RE_NUM >= 20181031 // PACKET_ZC_AUTOSPELLLIST2 |