Commit 5a2e1cd5 authored by pokergaming's avatar pokergaming
Browse files

fixed joc regression with arrays > 2000 elements

fixed bug with 8x8 click "hotspot" not working correctly on x-axis of garrays
parent 1df4908a
......@@ -1093,7 +1093,7 @@ int array_doclick(t_array *array, t_glist *glist, t_scalar *sc, t_array *ap,
// all_about_arrays.pd inside custom scalars in an array
if (pwpix < 8)
pwpix = 8;
if (xpix >= (int)pxpix1 && xpix <= (int)pxpix2 &&
if (xpix >= (int)pxpix1-pwpix && xpix <= (int)pxpix2+pwpix &&
((array_joc) ||
(ypix >= pypix-pwpix && ypix <= pypix+pwpix)))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment