diff options
author | Haru <haru@dotalux.com> | 2019-08-26 00:50:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-26 00:50:49 +0200 |
commit | 81e5138adab92c18c7b95f4ca55850be20dde462 (patch) | |
tree | a7c1908ddc8d213ceef453a835b9522ce97617a8 /src/map/pc.h | |
parent | 47f133c410d0004bf0cb05a4de5af2ee1944bcc3 (diff) | |
parent | 6629dfd05f4ebef7862cd2d499b7330acc8d82ac (diff) | |
download | hercules-81e5138adab92c18c7b95f4ca55850be20dde462.tar.gz hercules-81e5138adab92c18c7b95f4ca55850be20dde462.tar.bz2 hercules-81e5138adab92c18c7b95f4ca55850be20dde462.tar.xz hercules-81e5138adab92c18c7b95f4ca55850be20dde462.zip |
Merge pull request #2501 from 4144/fixes
Add some missing checks into clif.c
Diffstat (limited to 'src/map/pc.h')
-rw-r--r-- | src/map/pc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.h b/src/map/pc.h index 7c89f7f32..f1b9e5d1a 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -675,6 +675,7 @@ END_ZEROED_BLOCK; #define pc_iscloaking(sd) ( !((sd)->sc.option&OPTION_CHASEWALK) && ((sd)->sc.option&OPTION_CLOAK) ) #define pc_ischasewalk(sd) ( (sd)->sc.option&OPTION_CHASEWALK ) #define pc_ismuted(sc,type) ( (sc)->data[SC_NOCHAT] && (sc)->data[SC_NOCHAT]->val1&(type) ) +#define pc_isvending(sd) ((sd)->state.vending || (sd)->state.prevend || (sd)->state.buyingstore) #ifdef NEW_CARTS #define pc_iscarton(sd) ( (sd)->sc.data[SC_PUSH_CART] ) |