summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-17 04:07:27 +0100
committerHaru <haru@dotalux.com>2013-11-17 04:19:03 +0100
commite095650d437c81e6ae90a99a3cd1bb0c8c6eba38 (patch)
tree594bf0d9a9f17612fb587e4be276dfe26a8862aa /src/map/battle.c
parentbe6440dfb609b4ce28ca973a8987ab434774c8ed (diff)
downloadhercules-e095650d437c81e6ae90a99a3cd1bb0c8c6eba38.tar.gz
hercules-e095650d437c81e6ae90a99a3cd1bb0c8c6eba38.tar.bz2
hercules-e095650d437c81e6ae90a99a3cd1bb0c8c6eba38.tar.xz
hercules-e095650d437c81e6ae90a99a3cd1bb0c8c6eba38.zip
Added emblem blank pixels check
- Made possible thanks to (and using base code by) Ai4rei - eAthena r15263 and add-on patch http://hercules.ws/board/topic/2974-add-on-patch-for-ea-r15263-commit/ - Modified to allow checking for a percentage of transparent pixels rather than full image transparency. - Tweaked to accept some other bmp formats that are currently allowed by the client. - The performance hit from enabling this check is negligible (benchmarks show that scanning an emblem requires about half the time required to decompress it after it's received), but it does exist, as noted in the configuration file. - Special thanks to Ind. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index e1dffb796..b44bc353e 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -6442,6 +6442,7 @@ static const struct _battle_data {
{ "cashshop_show_points", &battle_config.cashshop_show_points, 0, 0, 1, },
{ "mail_show_status", &battle_config.mail_show_status, 0, 0, 2, },
{ "client_limit_unit_lv", &battle_config.client_limit_unit_lv, 0, 0, BL_ALL, },
+ { "client_emblem_max_blank_percent", &battle_config.client_emblem_max_blank_percent, 100, 0, 100, },
// BattleGround Settings
{ "bg_update_interval", &battle_config.bg_update_interval, 1000, 100, INT_MAX, },
{ "bg_flee_penalty", &battle_config.bg_flee_penalty, 20, 0, INT_MAX, },