diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-12-13 08:23:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-12-13 08:36:08 +0300 |
commit | 3acb36c33e06a8a7e226e43ff8656c8cffa2eeb3 (patch) | |
tree | bb255692e83f0c733692dc8932fdba307c1a2474 /src/map/clif.c | |
parent | 1f78dc3468f1a4afe1f8bd09ea340a715af1d206 (diff) | |
download | hercules-3acb36c33e06a8a7e226e43ff8656c8cffa2eeb3.tar.gz hercules-3acb36c33e06a8a7e226e43ff8656c8cffa2eeb3.tar.bz2 hercules-3acb36c33e06a8a7e226e43ff8656c8cffa2eeb3.tar.xz hercules-3acb36c33e06a8a7e226e43ff8656c8cffa2eeb3.zip |
Convert packet CZ_SE_CASHSHOP_OPEN to structure and add new packet version
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index ade56b53b..a1c1bce19 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -19983,6 +19983,7 @@ static void clif_parse_dull(int fd, struct map_session_data *sd) static void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); static void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) { +#if PACKETVER >= 20100824 if (sd->state.trading || pc_isdead(sd) || pc_isvending(sd)) return; @@ -19996,6 +19997,7 @@ static void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) WFIFOL(fd, 2) = sd->cashPoints; //[Ryuuzaki] - switched positions to reflect proper values WFIFOL(fd, 6) = sd->kafraPoints; WFIFOSET(fd, 10); +#endif } static void clif_parse_CashShopClose(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); |