Mobile: Fix if you hold down finger to delete block, then move it slightly, it reverts to moving camera instead (Thanks fizzwhiz)

This commit is contained in:
UnknownShadow200 2020-11-17 23:32:55 +11:00
parent 0643c90f3a
commit a267adfbce

View File

@ -65,7 +65,11 @@ static void MouseStateRelease(int button);
static cc_bool AnyBlockTouches(void) {
int i;
for (i = 0; i < Pointers_Count; i++) {
if (touches[i].type & TOUCH_TYPE_BLOCKS) return true;
if (!(touches[i].type & TOUCH_TYPE_BLOCKS)) continue;
/* Touch might be an 'all' type - limit it to only 'block' type */
touches[i].type = TOUCH_TYPE_BLOCKS;
return true;
}
return false;
}