project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 3911 46d7a5cf8ac6
parent 3893 568bfd083465
child 3923 694e6f6e0e30
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Sun Sep 26 23:48:03 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Mon Sep 27 01:51:12 2010 +0200
@@ -183,6 +183,7 @@
                                                                       mapConfigViewController.mazeSizeCommand,@"mazesize_command",
                                                                       mapConfigViewController.themeCommand,@"theme_command",
                                                                       mapConfigViewController.staticMapCommand,@"staticmap_command",
+                                                                      mapConfigViewController.missionCommand,@"mission_command",  
                                                                       teamConfigViewController.listOfSelectedTeams,@"teams_list",
                                                                       schemeWeaponConfigViewController.selectedScheme,@"scheme",
                                                                       schemeWeaponConfigViewController.selectedWeapon,@"weapon",
@@ -191,10 +192,13 @@
     // finally launch game and remove this controller
     DLog(@"sending config %@", gameDictionary);
 
-    if ([[gameDictionary allKeys] count] == 9) {
+    if ([[gameDictionary allKeys] count] == 10) {
         NSDictionary *allDataNecessary = [NSDictionary dictionaryWithObjectsAndKeys:gameDictionary,@"game_dictionary", @"",@"savefile",
                                                                                     [NSNumber numberWithBool:NO],@"netgame", nil];
         [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
+        
+        // tell controllers that they're being reloaded
+        [mapConfigViewController viewWillAppear:YES];
     } else {
         DLog(@"gameconfig data not complete!!\nmapConfigViewController = %@\nteamConfigViewController = %@\nschemeWeaponConfigViewController = %@\n",
              mapConfigViewController, teamConfigViewController, schemeWeaponConfigViewController);