# HG changeset patch # User koda # Date 1295386926 -3600 # Node ID afe24c4491ef14a85b230e9141e54f757d06fbc5 # Parent 3f39678491334222c280eead78c2d0c933b87ec4 sheepluva suggested that game should pause when in weapon screen (iphone only) diff -r 3f3967849133 -r afe24c4491ef project_files/HedgewarsMobile/Classes/AmmoMenuViewController.m --- 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 - diff -r 3f3967849133 -r afe24c4491ef project_files/HedgewarsMobile/Hedgewars.xcodeproj/project.pbxproj --- a/project_files/HedgewarsMobile/Hedgewars.xcodeproj/project.pbxproj Tue Jan 18 14:28:29 2011 +0100 +++ b/project_files/HedgewarsMobile/Hedgewars.xcodeproj/project.pbxproj Tue Jan 18 22:42:06 2011 +0100 @@ -1576,7 +1576,7 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 1D6058900D05DD3D006BFB54 /* Hedgewars */ = { + 1D6058900D05DD3D006BFB54 /* Test Lua */ = { isa = PBXNativeTarget; buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Hedgewars" */; buildPhases = ( @@ -1667,7 +1667,7 @@ ); projectRoot = ""; targets = ( - 1D6058900D05DD3D006BFB54 /* Hedgewars */, + 1D6058900D05DD3D006BFB54 /* Test Lua */, 928301160F10CAFC00CC5A3C /* fpc */, 6179928B114AE0C800BA94A9 /* UpdateDataFolder */, );