summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-15 13:57:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-17 00:37:21 +0300
commitd48884f776c943b32bf432076ac28180a4410b06 (patch)
tree6ce8b1d49b149f2c70ca4bd620e6221790e89541 /src/map/pc.c
parent445bb7d0595832b3fed3ad3218073c4f6b6bb207 (diff)
downloadhercules-d48884f776c943b32bf432076ac28180a4410b06.tar.gz
hercules-d48884f776c943b32bf432076ac28180a4410b06.tar.bz2
hercules-d48884f776c943b32bf432076ac28180a4410b06.tar.xz
hercules-d48884f776c943b32bf432076ac28180a4410b06.zip
Move check is item usable or not to separate method.
New method: itemdb_is_item_usable Can be used as: itemdb->is_item_usable(item)
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5c6cac6e9..6c3a32152 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4238,7 +4238,7 @@ int pc_isUseitem(struct map_session_data *sd,int n)
if( item == NULL )
return 0;
//Not consumable item
- if( item->type != IT_HEALING && item->type != IT_USABLE && item->type != IT_CASH )
+ if (!itemdb->is_item_usable(item))
return 0;
if( !item->script ) //if it has no script, you can't really consume it!
return 0;