project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 3984 d92509c2f255
parent 3983 aa24192417a8
child 3996 eb549fd864a5
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Tue Oct 19 23:58:27 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Thu Oct 21 00:41:41 2010 +0200
@@ -212,11 +212,12 @@
     if ([[gameDictionary allKeys] count] == 11) {
         NSDictionary *allDataNecessary = [NSDictionary dictionaryWithObjectsAndKeys:gameDictionary,@"game_dictionary", @"",@"savefile",
                                                                                     [NSNumber numberWithBool:NO],@"netgame", nil];
+        // let's hide all the views while the game is on
+        UIViewController *dummy = [[UIViewController alloc] init];
+        [self presentModalViewController:dummy animated:NO];
         [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
-        
-        // tell controllers that they're being reloaded
-        [self.mapConfigViewController viewWillAppear:YES];
-        [self.schemeWeaponConfigViewController viewWillAppear:YES];
+        [self dismissModalViewControllerAnimated:NO];
+        [dummy release];
     } else {
         DLog(@"gameconfig data not complete!!");
         [self.parentViewController dismissModalViewControllerAnimated:YES];