From e095650d437c81e6ae90a99a3cd1bb0c8c6eba38 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 17 Nov 2013 04:07:27 +0100 Subject: 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 --- conf/battle/client.conf | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'conf/battle') diff --git a/conf/battle/client.conf b/conf/battle/client.conf index eae8aad3b..069dea1a5 100644 --- a/conf/battle/client.conf +++ b/conf/battle/client.conf @@ -118,3 +118,11 @@ client_sort_storage: no // because the client sees multiple commands in succession as spam. // Default: 0 (means disabled) client_accept_chatdori: 0 + +// Limits use of blank (transparent) pixels in guild emblems to a set +// percentage of the total. +// Official servers do not enforce this technically to date, but some disallow +// use of blank emblems in their rules. (Note 2) +// A value of 100 (allowing 100% blank pixels) disables this check. +// NOTE: Enabling this option slightly degrades performance. +client_emblem_max_blank_percent: 100 -- cgit v1.2.3-70-g09d2