project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m
changeset 5370 a3f87be7b09a
parent 5224 6e8fbbfb0de5
child 5451 e359a79e3d08
--- a/project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m	Sun Jul 03 01:10:39 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m	Sun Jul 03 02:33:17 2011 +0200
@@ -62,6 +62,9 @@
             [settings setObject:[NSNumber numberWithBool:NO] forKey:@"music"];
             theOtherSwitch = (UISwitch *)[self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:1]].accessoryView;
             [theOtherSwitch setOn:NO animated:YES];
+
+            if (theOtherSwitch.on)
+                [HedgewarsAppDelegate pauseBackgroundMusic];
             break;
         case 20:    //musicSwitch
             // if switch above (sound) is off, never turn on