From 4abd8787678b31e0abeb0ff20f76c64299954713 Mon Sep 17 00:00:00 2001 From: "Alex Sander S.R. Silva" Date: Sun, 19 Dec 2021 15:41:09 -0300 Subject: [PATCH] Fixed minor bug in find_all() FIXED: If two matches were next to each other, but without at least a pixel separating them, the bot would consider them to be duplicates. --- botcity/core/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/botcity/core/bot.py b/botcity/core/bot.py index fea32d5..72d4c6d 100644 --- a/botcity/core/bot.py +++ b/botcity/core/bot.py @@ -309,8 +309,8 @@ def find_same(item, items): for itm in items: if itm == item: continue - if (itm.left >= x_start and itm.left <= x_end)\ - and (itm.top >= y_start and itm.top <= y_end): + if (itm.left >= x_start and itm.left < x_end)\ + and (itm.top >= y_start and itm.top < y_end): similars.append(itm) continue return similars