project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 6000 dbcebcd3d79f
parent 5984 6fd40d866342
child 6008 215f0c9719e3
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Fri Sep 23 22:42:30 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sat Sep 24 00:54:47 2011 +0200
@@ -30,6 +30,7 @@
 #import "Appirater.h"
 #import "ServerSetup.h"
 
+
 @implementation MainMenuViewController
 @synthesize gameConfigViewController, settingsViewController, aboutViewController, savedGamesViewController, restoreViewController;
 
@@ -106,7 +107,7 @@
     NSString *trackingVersion = [userDefaults stringForKey:@"HedgeVersion"];
 
     if ([[userDefaults objectForKey:@"music"] boolValue])
-        [HedgewarsAppDelegate playBackgroundMusic];
+        [AudioManagerController playBackgroundMusic];
 
     if (trackingVersion == nil || [trackingVersion isEqualToString:version] == NO) {
         // remove any reminder of previous games as saves are going to be wiped out
@@ -156,7 +157,7 @@
     NSString *xib = nil;
     NSString *debugStr = nil;
 
-    playSound(@"clickSound");
+    [AudioManagerController playClickSound];
     switch (button.tag) {
         case 0:
             if (nil == self.gameConfigViewController) {