summaryrefslogtreecommitdiff
path: root/src/map/buyingstore.c
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2015-12-12 12:52:28 +0200
committerHaru <haru@dotalux.com>2015-12-17 04:15:53 +0100
commitbb407e4e657c80115af8a8f5717e1f6f6dc61043 (patch)
tree63ae925756971fb7a6a840d40788c682714b48a4 /src/map/buyingstore.c
parent478776d998e0fb48d87cd4c49229a1cf1b8cc203 (diff)
downloadhercules-bb407e4e657c80115af8a8f5717e1f6f6dc61043.tar.gz
hercules-bb407e4e657c80115af8a8f5717e1f6f6dc61043.tar.bz2
hercules-bb407e4e657c80115af8a8f5717e1f6f6dc61043.tar.xz
hercules-bb407e4e657c80115af8a8f5717e1f6f6dc61043.zip
Change all chat mute checks to use pc->can_talk instead of direct check.
Put new macro pc_ismuted and change all other kind of mutes to use it Closes #937 as merged Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/buyingstore.c')
-rw-r--r--src/map/buyingstore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/buyingstore.c b/src/map/buyingstore.c
index 38b8da91d..3828a3c14 100644
--- a/src/map/buyingstore.c
+++ b/src/map/buyingstore.c
@@ -51,7 +51,7 @@ bool buyingstore_setup(struct map_session_data* sd, unsigned char slots)
return false;
}
- if( sd->sc.data[SC_NOCHAT] && (sd->sc.data[SC_NOCHAT]->val1&MANNER_NOROOM) )
+ if(pc_ismuted(&sd->sc, MANNER_NOROOM))
{// custom: mute limitation
return false;
}
@@ -105,7 +105,7 @@ void buyingstore_create(struct map_session_data* sd, int zenylimit, unsigned cha
return;
}
- if( sd->sc.data[SC_NOCHAT] && (sd->sc.data[SC_NOCHAT]->val1&MANNER_NOROOM) )
+ if(pc_ismuted(&sd->sc, MANNER_NOROOM))
{// custom: mute limitation
return;
}