project_files/HedgewarsMobile/Classes/RestoreViewController.m
changeset 6000 dbcebcd3d79f
parent 5699 1a9a6a7662aa
child 6008 215f0c9719e3
--- a/project_files/HedgewarsMobile/Classes/RestoreViewController.m	Fri Sep 23 22:42:30 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/RestoreViewController.m	Sat Sep 24 00:54:47 2011 +0200
@@ -36,7 +36,7 @@
     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
 
     if (theButton.tag != 0) {
-        playSound(@"clickSound");
+        [AudioManagerController playClickSound];
         if (self.interfaceBridge == nil) {
             GameInterfaceBridge *bridge = [[GameInterfaceBridge alloc] initWithController:self.parentViewController];
             self.interfaceBridge = bridge;
@@ -45,7 +45,7 @@
         [self.parentViewController dismissModalViewControllerAnimated:NO];
         [self.interfaceBridge startSaveGame:[defaults objectForKey:@"savedGamePath"]];
     } else {
-        playSound(@"backSound");
+        [AudioManagerController playBackSound];
         [defaults setObject:@"" forKey:@"savedGamePath"];
         [defaults synchronize];
         [self.parentViewController dismissModalViewControllerAnimated:YES];