project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 4912 862b134284b2
parent 4861 91f889289a47
child 4976 088d40d8aba2
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Wed Feb 02 23:38:44 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Thu Feb 03 00:23:41 2011 +0100
@@ -239,10 +239,16 @@
     statsPage.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
     if ([statsPage respondsToSelector:@selector(setModalPresentationStyle:)])
         statsPage.modalPresentationStyle = UIModalPresentationPageSheet;
-    // avoid showing the stat page immediately, but wait for 3 seconds
-    [self performSelector:@selector(presentModalViewController:animated:) withObject:statsPage afterDelay:3];
 
-    NSArray *stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
+    NSArray *stats;
+    if (IS_DUALHEAD()) {
+        stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
+        [self presentModalViewController:statsPage animated:NO];
+    } else {
+        [self performSelector:@selector(presentModalViewController:animated:) withObject:statsPage afterDelay:3];
+        stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
+    }
+
     if ([stats count] <= 1) {
         DLog(@"%@",stats);
         [statsPage dismissModalViewControllerAnimated:NO];