summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-01-08 22:41:48 +0300
committerAndrei Karas <akaras@inbox.ru>2020-01-09 11:13:27 +0300
commitad7a25af13277c280fb4a7cbf134fe5d01de186d (patch)
tree0fe3cc037e846f9db765f271ec082d54b7cba11d
parentd91e2ef9be7b99052ad422b835fb43e71ec6a2db (diff)
downloadhercules-ad7a25af13277c280fb4a7cbf134fe5d01de186d.tar.gz
hercules-ad7a25af13277c280fb4a7cbf134fe5d01de186d.tar.bz2
hercules-ad7a25af13277c280fb4a7cbf134fe5d01de186d.tar.xz
hercules-ad7a25af13277c280fb4a7cbf134fe5d01de186d.zip
Use struct packet in clif_partytickack
-rw-r--r--src/map/clif.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index df10cdc8f..c963c1680 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -20276,12 +20276,15 @@ static void clif_status_change2(struct block_list *bl, int tid, enum send_target
static void clif_partytickack(struct map_session_data *sd, bool flag)
{
+#if PACKETVER_MAIN_NUM >= 20070911 || defined(PACKETVER_RE) || PACKETVER_AD_NUM >= 20070911 || PACKETVER_SAK_NUM >= 20070904 || defined(PACKETVER_ZERO)
nullpo_retv(sd);
- WFIFOHEAD(sd->fd, packet_len(0x2c9));
- WFIFOW(sd->fd, 0) = 0x2c9;
- WFIFOB(sd->fd, 2) = flag;
- WFIFOSET(sd->fd, packet_len(0x2c9));
+ WFIFOHEAD(sd->fd, sizeof(struct PACKET_ZC_PARTY_CONFIG));
+ struct PACKET_ZC_PARTY_CONFIG *p = WFIFOP(sd->fd, 0);
+ p->packetType = HEADER_ZC_PARTY_CONFIG;
+ p->denyPartyInvites = flag;
+ WFIFOSET(sd->fd, sizeof(struct PACKET_ZC_PARTY_CONFIG));
+#endif
}
static void clif_ShowScript(struct block_list *bl, const char *message, enum send_target target)