--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m Wed Sep 22 01:10:20 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m Wed Sep 22 02:22:15 2010 +0200
@@ -192,17 +192,9 @@
DLog(@"sending config %@", gameDictionary);
if ([[gameDictionary allKeys] count] == 9) {
- UIView *black = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.height, self.view.frame.size.width)];
- black.opaque = YES;
- black.backgroundColor = [UIColor blackColor];
- [self.view addSubview:black];
- [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:gameDictionary];
- [UIView beginAnimations:@"fading in from ingame" context:NULL];
- [UIView setAnimationDuration:1];
- black.alpha = 0;
- [UIView commitAnimations];
- [black performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1];
- [black performSelector:@selector(release) withObject:nil afterDelay:1];
+ NSDictionary *allDataNecessary = [NSDictionary dictionaryWithObjectsAndKeys:gameDictionary,@"game_dictionary", @"",@"savefile",
+ [NSNumber numberWithBool:NO],@"netgame", nil];
+ [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
} else {
DLog(@"gameconfig data not complete!!\nmapConfigViewController = %@\nteamConfigViewController = %@\nschemeWeaponConfigViewController = %@\n",
mapConfigViewController, teamConfigViewController, schemeWeaponConfigViewController);