project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 3783 8e9daf967406
parent 3780 7c704e69242e
child 3789 c3eb56754e92
--- a/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Sat Aug 28 05:35:02 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Sun Aug 29 16:55:27 2010 +0200
@@ -148,7 +148,12 @@
     */
 }
 
--(IBAction) updatePreview {
+-(IBAction) mapButtonPressed {
+    playSound(@"clickSound");
+    [self updatePreview];
+}
+
+-(void) updatePreview {
     // don't generate a new preview while it's already generating one
     if (busy)
         return;
@@ -435,6 +440,7 @@
         [self updatePreview];
         oldValue = num;
     }
+    playSound(@"clickSound");
 }
 
 // perform actions based on the activated section, then call updatePreview to visually update the selection
@@ -444,6 +450,7 @@
     NSString *mapgen, *staticmap;
     NSInteger newPage = self.segmentedControl.selectedSegmentIndex;
 
+    playSound(@"selSound");
     switch (newPage) {
         case 0: // Random
             mapgen = @"e$mapgen 0";