diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-02-05 22:30:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-02-06 03:55:32 +0300 |
commit | 1efc9f3571988551407191a0784b363022c7fcc5 (patch) | |
tree | e4c66832131d6ba39d40c25733641b01a87f31c4 /src/map/clif.c | |
parent | 0b408f5971a9e4152b2aadc2b9208a0e8643f6e3 (diff) | |
download | hercules-1efc9f3571988551407191a0784b363022c7fcc5.tar.gz hercules-1efc9f3571988551407191a0784b363022c7fcc5.tar.bz2 hercules-1efc9f3571988551407191a0784b363022c7fcc5.tar.xz hercules-1efc9f3571988551407191a0784b363022c7fcc5.zip |
Add packet CZ_CLIENT_VERSION
For now unused, but can be used.
This packet works in some old clients near 2015 versions.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 44635d699..ae92e7b2c 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -22289,6 +22289,14 @@ static void clif_parse_NPCBarterPurchase(int fd, struct map_session_data *sd) #endif } +static void clif_parse_clientVersion(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); +static void clif_parse_clientVersion(int fd, struct map_session_data *sd) +{ +#if PACKETVER_MAIN_NUM >= 20090406 || PACKETVER_RE_NUM >= 20090408 || PACKETVER_SAK_NUM >= 20090408 || defined(PACKETVER_ZERO) + // TODO: show or store client version +#endif +} + /*========================================== * Main client packet processing function *------------------------------------------*/ @@ -23478,4 +23486,5 @@ void clif_defaults(void) clif->npc_barter_open = clif_npc_barter_open; clif->pNPCBarterClosed = clif_parse_NPCBarterClosed; clif->pNPCBarterPurchase = clif_parse_NPCBarterPurchase; + clif->pClientVersion = clif_parse_clientVersion; } |