project_files/HedgewarsMobile/Classes/AmmoMenuViewController.m
changeset 4853 afe24c4491ef
parent 4362 8dae325dc625
child 4945 541d35d1f2e8
--- a/project_files/HedgewarsMobile/Classes/AmmoMenuViewController.m	Tue Jan 18 14:28:29 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/AmmoMenuViewController.m	Tue Jan 18 22:42:06 2011 +0100
@@ -79,6 +79,8 @@
             self.view.center = CGPointMake(placingPoint.x, placingPoint.y);
     }
     self.isVisible = YES;
+    if (IS_IPAD() == NO)
+        HW_pause();
 }
 
 -(void) disappear {
@@ -87,6 +89,8 @@
     self.isVisible = NO;
     placingPoint.x = self.view.center.y;
     placingPoint.y = self.view.center.x;
+    if (IS_IPAD() == NO)
+        HW_pauseToggle();
 }
 
 #pragma mark -