diff -r e8f44e9433f0 -r dbcebcd3d79f project_files/HedgewarsMobile/Classes/CommodityFunctions.m --- a/project_files/HedgewarsMobile/Classes/CommodityFunctions.m Fri Sep 23 22:42:30 2011 +0200 +++ b/project_files/HedgewarsMobile/Classes/CommodityFunctions.m Sat Sep 24 00:54:47 2011 +0200 @@ -25,7 +25,6 @@ #import #import #import -#import #import #import #import @@ -76,21 +75,6 @@ return modelId; } -void playSound (NSString *snd) { - if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"sound"] boolValue] == YES) { - // get the filename of the sound file: - NSString *path = [NSString stringWithFormat:@"%@/%@.wav",[[NSBundle mainBundle] resourcePath],snd]; - - // declare a system sound id and get a URL for the sound file - SystemSoundID soundID; - NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO]; - - // use audio sevices to create and play the sound - AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID); - AudioServicesPlaySystemSound(soundID); - } -} - NSArray *getAvailableColors (void) { // by default colors are ARGB but we do computation over RGB, hence we have to "& 0x00FFFFFF" before processing unsigned int colors[] = HW_TEAMCOLOR_ARRAY;