diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-07-09 22:37:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-08-02 23:52:27 +0300 |
commit | 6629dfd05f4ebef7862cd2d499b7330acc8d82ac (patch) | |
tree | 07c1366c8e94b6e87d1d481a10f75618b7abb356 /src/map/pc.h | |
parent | 0edf2360b185f0e1c68bb6ddbbbe3720af5651b3 (diff) | |
download | hercules-6629dfd05f4ebef7862cd2d499b7330acc8d82ac.tar.gz hercules-6629dfd05f4ebef7862cd2d499b7330acc8d82ac.tar.bz2 hercules-6629dfd05f4ebef7862cd2d499b7330acc8d82ac.tar.xz hercules-6629dfd05f4ebef7862cd2d499b7330acc8d82ac.zip |
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] ) |