summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-04-07 15:51:08 +0200
committerGitHub <noreply@github.com>2018-04-07 15:51:08 +0200
commitb2f92713a6f0449d4ca319ab178d6391c021f57c (patch)
treed9c4262af27cd5bdf6e9d860c79560891937e03f /src/map/clif.c
parent3a0badaffa02b29d11290dcb5ed8ccaf381e77e8 (diff)
parentd6d6a61fa4c09579d8fa8cfcf9e20a9be5eb0c6c (diff)
downloadhercules-b2f92713a6f0449d4ca319ab178d6391c021f57c.tar.gz
hercules-b2f92713a6f0449d4ca319ab178d6391c021f57c.tar.bz2
hercules-b2f92713a6f0449d4ca319ab178d6391c021f57c.tar.xz
hercules-b2f92713a6f0449d4ca319ab178d6391c021f57c.zip
Merge pull request #2014 from 4144/updatepackets
Update packets to 20180404 version
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 942600a26..5bab7ef15 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6094,7 +6094,7 @@ void clif_wis_end(int fd, int flag) {
void clif_solved_charname(int fd, int charid, const char* name)
{
nullpo_retv(name);
-#if PACKETVER_MAIN_NUM >= 20180307 || PACKETVER_RE_NUM >= 20180221
+#if PACKETVER_MAIN_NUM >= 20180307 || PACKETVER_RE_NUM >= 20180221 || PACKETVER_ZERO_NUM >= 20180328
WFIFOHEAD(fd, packet_len(0x0af7));
WFIFOW(fd, 0) = 0xaf7;
if (*name == 0) {
@@ -16381,6 +16381,7 @@ void clif_quest_update_objective(struct map_session_data *sd, struct quest *qd)
/// 08fe <packet len>.W { <quest id>.L <mob id>.L <total count>.W <current count>.W }*3
void clif_quest_notify_objective(struct map_session_data *sd, struct quest *qd)
{
+#if PACKETVER >= 20150513
int i, len, real_len;
uint8 *buf = NULL;
struct packet_quest_hunt_info *packet = NULL;
@@ -16412,6 +16413,7 @@ void clif_quest_notify_objective(struct map_session_data *sd, struct quest *qd)
packet->PacketLength = real_len;
clif->send(buf, real_len, &sd->bl, SELF);
aFree(buf);
+#endif
}
void clif_parse_questStateAck(int fd, struct map_session_data *sd) __attribute__((nonnull (2)));