# HG changeset patch
# User Medo <smaxein@googlemail.com>
# Date 1342559180 -7200
# Node ID 66a10ae88457f8eb9deeb02479b7fb561175f26d
# Parent  3f2e130f9715dd3ff2c20111364a325d5bcea680
Hedgeroid: Fixed multitouch breakage

diff -r 3f2e130f9715 -r 66a10ae88457 project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/SDLActivity.java
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/SDLActivity.java	Tue Jul 17 22:27:16 2012 +0200
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/SDLActivity.java	Tue Jul 17 23:06:20 2012 +0200
@@ -580,7 +580,7 @@
 	// Touch events
 	public boolean onTouch(View v, MotionEvent event) {
 		final int action = event.getAction() & MotionEvent.ACTION_MASK;
-		final int actionPointerIndex = event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK;		
+		final int actionPointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK) >> MotionEvent.ACTION_POINTER_INDEX_SHIFT;		
 
 		if (action == MotionEvent.ACTION_MOVE) {
 			// TODO send motion to every pointer if its position has