diff -r 9df7b4812da9 -r 9660600e43cb project_files/HedgewarsMobile/Classes/SavedGamesViewController.m --- a/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m Fri Oct 15 01:10:59 2010 +0200 +++ b/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m Sat Oct 16 18:35:28 2010 +0200 @@ -41,16 +41,12 @@ -(void) viewDidLoad { self.tableView.backgroundView = nil; - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(viewWillAppear:) - name:@"removedSave" - object:nil]; [super viewDidLoad]; } -(void) viewWillAppear:(BOOL)animated { + [self updateTable]; [super viewWillAppear:animated]; - [self updateTable]; } #pragma mark - @@ -198,11 +194,12 @@ NSString *filePath = [NSString stringWithFormat:@"%@/%@",SAVES_DIRECTORY(),[self.listOfSavegames objectAtIndex:[indexPath row]]]; NSDictionary *allDataNecessary = [NSDictionary dictionaryWithObjectsAndKeys: - [NSDictionary dictionary],@"game_dictionary", filePath,@"savefile", [NSNumber numberWithBool:NO],@"netgame", + [NSDictionary dictionaryWithObject:[NSNumber numberWithInt:self.interfaceOrientation] forKey:@"orientation"],@"game_dictionary", nil]; [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary]; + [self.parentViewController dismissModalViewControllerAnimated:NO]; } #pragma mark -