summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-04-14 20:47:39 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-04-14 20:47:39 +0200
commit07871308ff4b593375ab6520eed305b3d5948e22 (patch)
treec0b2a5ea1fa7f837fa09640606a6d0b2404cc7a6 /src/map/pc.h
parentf40cc839413cc82aed445d39cc3aa204dce87780 (diff)
downloadhercules-07871308ff4b593375ab6520eed305b3d5948e22.tar.gz
hercules-07871308ff4b593375ab6520eed305b3d5948e22.tar.bz2
hercules-07871308ff4b593375ab6520eed305b3d5948e22.tar.xz
hercules-07871308ff4b593375ab6520eed305b3d5948e22.zip
Change pc_ismuted() macro to compare against battle_config.manner_system
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 2699b7882..153f2ee36 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -687,7 +687,7 @@ END_ZEROED_BLOCK;
#define pc_ishiding(sd) ( (sd)->sc.option&(OPTION_HIDE|OPTION_CLOAK|OPTION_CHASEWALK) )
#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_ismuted(sc, type) ( (sc)->data[SC_NOCHAT] != NULL && (battle_config.manner_system & (type)) != 0 )
#define pc_isvending(sd) ((sd)->state.vending || (sd)->state.prevend || (sd)->state.buyingstore)
#ifdef NEW_CARTS