mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 19:15:14 -04:00
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:
parent
0643c90f3a
commit
a267adfbce
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user