diff -r 0ba2dca673e6 -r d8632f589008 project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m --- a/project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m Fri Aug 05 14:15:19 2011 -0400 +++ b/project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m Fri Aug 05 01:22:51 2011 +0200 @@ -144,10 +144,9 @@ -(void) applicationWillResignActive:(UIApplication *)application { //[super applicationWillResignActive:application]; - UIDevice* device = [UIDevice currentDevice]; + UIDevice *device = [UIDevice currentDevice]; if ([device respondsToSelector:@selector(isMultitaskingSupported)] && - device.multitaskingSupported && - self.isInGame) { + [device isMultitaskingSupported] && self.isInGame) { // let's try to be permissive with multitasking here... if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"multitasking"] boolValue]) HW_suspend(); @@ -166,10 +165,9 @@ -(void) applicationDidBecomeActive:(UIApplication *)application { //[super applicationDidBecomeActive:application]; - UIDevice* device = [UIDevice currentDevice]; + UIDevice *device = [UIDevice currentDevice]; if ([device respondsToSelector:@selector(isMultitaskingSupported)] && - device.multitaskingSupported && - self.isInGame) { + [device isMultitaskingSupported] && self.isInGame) { HW_resume(); } }