project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 3624 304c6d32383a
parent 3617 1df21e06b8ba
child 3625 9f1d79e01a60
--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Sun Jul 04 01:27:41 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Mon Jul 05 22:42:43 2010 +0200
@@ -228,6 +228,9 @@
         case 10:
             [self showPopover];
             break;
+        case 11:
+            HW_ammoMenu();
+            break;
         default:
             NSLog(@"Nope");
             break;
@@ -327,13 +330,10 @@
             case 1:
                 DLog(@"X:%d Y:%d", HWX(currentPosition.x), HWY(currentPosition.y));
                 HW_setCursor(HWX(currentPosition.x), HWY(currentPosition.y));
+                if (2 == [touch tapCount])
+                    HW_zoomReset();
                 break;
-            case 2:
-                if (2 == [touch tapCount]) {
-                    HW_ammoMenu();
-                    //HW_zoomReset();
-                }
-                
+            case 2:                
                 // pinching
                 twoTouches = [touches allObjects];
                 UITouch *first = [twoTouches objectAtIndex:0];