summaryrefslogtreecommitdiff
path: root/src/map/log.c
diff options
context:
space:
mode:
authorIbrahim Zidan <brahem@aotsw.com>2019-04-13 21:17:11 +0200
committerIbrahim Zidan <brahem@aotsw.com>2019-05-05 23:28:09 +0200
commita8f85f757435bc6f409d78612b53e4c3c531abb9 (patch)
treecf138fb324be44135e7037e3711f5f12136cf770 /src/map/log.c
parentbd1c1bb39b3d69fba175bda94af4e9d1149fbbb5 (diff)
downloadhercules-a8f85f757435bc6f409d78612b53e4c3c531abb9.tar.gz
hercules-a8f85f757435bc6f409d78612b53e4c3c531abb9.tar.bz2
hercules-a8f85f757435bc6f409d78612b53e4c3c531abb9.tar.xz
hercules-a8f85f757435bc6f409d78612b53e4c3c531abb9.zip
Fix variables shadowing refine interface variable map-server source
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
Diffstat (limited to 'src/map/log.c')
-rw-r--r--src/map/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/log.c b/src/map/log.c
index efb7fefbc..5bbca02a9 100644
--- a/src/map/log.c
+++ b/src/map/log.c
@@ -106,7 +106,7 @@ static char log_chattype2char(e_log_chat_type type)
}
/// check if this item should be logged according the settings
-static bool should_log_item(int nameid, int amount, int refine, struct item_data *id)
+static bool should_log_item(int nameid, int amount, int refine_level, struct item_data *id)
{
int filter = logs->config.filter;
@@ -123,7 +123,7 @@ static bool should_log_item(int nameid, int amount, int refine, struct item_data
( filter&LOG_FILTER_PETITEM && ( id->type == IT_PETEGG || id->type == IT_PETARMOR ) ) ||
( filter&LOG_FILTER_PRICE && id->value_buy >= logs->config.price_items_log ) ||
( filter&LOG_FILTER_AMOUNT && abs(amount) >= logs->config.amount_items_log ) ||
- ( filter&LOG_FILTER_REFINE && refine >= logs->config.refine_items_log ) ||
+ ( filter&LOG_FILTER_REFINE && refine_level >= logs->config.refine_items_log ) ||
( filter&LOG_FILTER_CHANCE && ( ( id->maxchance != -1 && id->maxchance <= logs->config.rare_items_log ) || id->nameid == ITEMID_EMPERIUM ) )
)
return true;