diff options
author | Haru <haru@dotalux.com> | 2017-09-22 00:13:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-22 00:13:15 +0200 |
commit | 46f5d10a555785899c04eda74e21922e92a2fb5b (patch) | |
tree | 934ec81ed964a7409ad2ba73616210f3cdf12389 /src/map/clif.c | |
parent | 7cbd35644b73f254fc976070cd1e993aa43a7cfc (diff) | |
parent | ee666f0279bca6dab137a8a8199665b7a4e7f8d8 (diff) | |
download | hercules-46f5d10a555785899c04eda74e21922e92a2fb5b.tar.gz hercules-46f5d10a555785899c04eda74e21922e92a2fb5b.tar.bz2 hercules-46f5d10a555785899c04eda74e21922e92a2fb5b.tar.xz hercules-46f5d10a555785899c04eda74e21922e92a2fb5b.zip |
Merge pull request #1844 from 4144/newpackets
Add packets for almost all 2014-2017 clients
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 5454bed2d..de0f0573f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3035,12 +3035,12 @@ void clif_updatestatus(struct map_session_data *sd,int type) break; case SP_BASEEXP: WFIFOW(fd,0)=0xb1; - WFIFOL(fd,4)=sd->status.base_exp; + WFIFOL(fd,4)=(uint32)(sd->status.base_exp); len = packet_len(0xb1); break; case SP_JOBEXP: WFIFOW(fd,0)=0xb1; - WFIFOL(fd,4)=sd->status.job_exp; + WFIFOL(fd,4)=(uint32)(sd->status.job_exp); len = packet_len(0xb1); break; case SP_NEXTBASEEXP: @@ -19928,9 +19928,10 @@ void packetdb_loaddb(void) { memset(packet_db,0,sizeof(packet_db)); #define packet(id, size, ...) packetdb_addpacket((id), (size), ##__VA_ARGS__, 0xFFFF) -#define packetKeys(a,b,c) do { clif->cryptKey[0] = (a); clif->cryptKey[1] = (b); clif->cryptKey[2] = (c); } while(0) #include "packets.h" /* load structure data */ #undef packet +#define packetKeys(a,b,c) do { clif->cryptKey[0] = (a); clif->cryptKey[1] = (b); clif->cryptKey[2] = (c); } while(0) +#include "packets_keys.h" #undef packetKeys } void clif_bc_ready(void) { |