project_files/HedgewarsMobile/Classes/SavedGamesViewController.m
changeset 4856 dbc256913b35
parent 4763 c228a4841e3f
child 4861 91f889289a47
--- a/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Tue Jan 18 23:08:47 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Wed Jan 19 01:12:55 2011 +0100
@@ -91,7 +91,6 @@
     [self.listOfSavegames addObject:newSaveName];
     [self.listOfSavegames sortUsingSelector:@selector(compare:)];
 
-    //[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:[self.listOfSavegames indexOfObject:newSaveName] inSection:0]] withRowAnimation:UITableViewRowAnimationFade];
     [self.tableView reloadData];
 }
 
@@ -225,8 +224,10 @@
         statsPage.modalPresentationStyle = UIModalPresentationPageSheet;
     [self presentModalViewController:statsPage animated:NO];
 
+    // also modify GameConfigViewController.m
     NSArray *stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
-    if ([stats count] == 0) {
+    if ([stats count] <= 1) {
+        DLog(@"%@",stats);
         [statsPage dismissModalViewControllerAnimated:NO];
     } else {
         statsPage.statsArray = stats;