The problem is the check condition:
loop_1 >= (offset - 190),loop_2 <= (190 + offset + 2)
This does not check both parts. (Well, it is, but only the result of the second part is used.)
Change it to
(loop_1 >= (offset - 190)) && (loop_2 <= (190 + offset + 2))
if you want both conditions to be checked.
source
share