project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 6008 215f0c9719e3
parent 6000 dbcebcd3d79f
child 6020 c792d4b3e080
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sat Sep 24 03:00:57 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sat Sep 24 04:53:53 2011 +0200
@@ -106,9 +106,6 @@
     NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
     NSString *trackingVersion = [userDefaults stringForKey:@"HedgeVersion"];
 
-    if ([[userDefaults objectForKey:@"music"] boolValue])
-        [AudioManagerController playBackgroundMusic];
-
     if (trackingVersion == nil || [trackingVersion isEqualToString:version] == NO) {
         // remove any reminder of previous games as saves are going to be wiped out
         [userDefaults setObject:@"" forKey:@"savedGamePath"];
@@ -149,6 +146,10 @@
     */
 }
 
+-(void) viewWillAppear:(BOOL)animated {
+    [AudioManagerController playBackgroundMusic];
+    [super viewWillAppear:animated];
+}
 
 #pragma mark -
 -(IBAction) switchViews:(id) sender {