project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 3779 3351a017d4ad
parent 3765 ebfe7c9b3085
child 3783 8e9daf967406
--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Sat Aug 28 00:30:29 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Sat Aug 28 01:37:21 2010 +0200
@@ -218,8 +218,10 @@
     if (!isGameRunning)
         return;
 
+    if (HW_isWaiting())
+        HW_shoot();
+    
     UIButton *theButton = (UIButton *)sender;
-
     switch (theButton.tag) {
         case 0:
             if (isAttacking == NO)
@@ -367,6 +369,10 @@
 
     switch ([allTouches count]) {
         case 1:
+            // this dismisses the "get ready"
+            if (HW_isWaiting())
+                HW_shoot();
+
             // if we're in the menu we just click in the point
             if (HW_isAmmoOpen()) {
                 HW_setCursor(HWXZ(currentPosition.x), HWYZ(currentPosition.y));