diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-25 07:53:56 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-25 07:53:56 +0200 |
commit | dab76f21b45980eefc53b22fa9a950b4f57e54b0 (patch) | |
tree | 732daae2cf5bee167787d6c5915f811033bd8ded | |
parent | 57731298a77bfcbce5f2839ed71bd50c0996af95 (diff) | |
download | hercules-dab76f21b45980eefc53b22fa9a950b4f57e54b0.tar.gz hercules-dab76f21b45980eefc53b22fa9a950b4f57e54b0.tar.bz2 hercules-dab76f21b45980eefc53b22fa9a950b4f57e54b0.tar.xz hercules-dab76f21b45980eefc53b22fa9a950b4f57e54b0.zip |
Add pc_cant_act_except_npc_chat() macro
-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 a6eeb5209..0334ff37c 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -686,6 +686,7 @@ END_ZEROED_BLOCK; #define pc_cant_act(sd) ( (sd)->npc_id || (sd)->state.vending || (sd)->state.buyingstore || (sd)->chat_id != 0 || ((sd)->sc.opt1 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading || (sd)->state.storage_flag || (sd)->state.prevend || (sd)->state.refine_ui == 1 || (sd)->state.lapine_ui == 1) #define pc_cant_act_except_lapine(sd) ((sd)->npc_id || (sd)->state.vending || (sd)->state.buyingstore || (sd)->chat_id != 0 || ((sd)->sc.opt1 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading || (sd)->state.storage_flag || (sd)->state.prevend || (sd)->state.refine_ui == 1) #define pc_cant_act_except_npc(sd) ( (sd)->state.vending != 0 || (sd)->state.buyingstore != 0 || (sd)->chat_id != 0 || ((sd)->sc.opt1 != 0 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading != 0 || (sd)->state.storage_flag != 0 || (sd)->state.prevend != 0 || (sd)->state.refine_ui == 1 || (sd)->state.lapine_ui == 1) +#define pc_cant_act_except_npc_chat(sd) ( (sd)->state.vending != 0 || (sd)->state.buyingstore != 0 || ((sd)->sc.opt1 != 0 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading != 0 || (sd)->state.storage_flag != 0 || (sd)->state.prevend != 0 || (sd)->state.refine_ui == 1 || (sd)->state.lapine_ui == 1) /* equals pc_cant_act except it doesn't check for chat rooms */ #define pc_cant_act2(sd) ( (sd)->npc_id || (sd)->state.buyingstore || ((sd)->sc.opt1 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading || (sd)->state.storage_flag || (sd)->state.prevend || (sd)->state.refine_ui == 1 || (sd)->state.lapine_ui == 1) |