--- a/project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m Wed Nov 24 23:35:41 2010 +0100
+++ b/project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m Thu Nov 25 02:45:52 2010 +0100
@@ -128,7 +128,11 @@
[setup release];
// since the sdlwindow is not yet created, we add the overlayController with a delay
- NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:isNetGameNum,@"net",menuStyle,@"menu",nil];
+ NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
+ isNetGameNum,@"net",
+ menuStyle,@"menu",
+ [[gameDictionary objectForKey:@"game_dictionary"] objectForKey:@"orientation"],@"orientation",
+ nil];
[self performSelector:@selector(displayOverlayLater:) withObject:dict afterDelay:1];
// this is the pascal fuction that starts the game (wrapped around isInGame)
@@ -157,6 +161,7 @@
self.overlayController = [[OverlayViewController alloc] initWithNibName:@"OverlayViewController" bundle:nil];
self.overlayController.isNetGame = [[dict objectForKey:@"net"] boolValue];
self.overlayController.useClassicMenu = [[dict objectForKey:@"menu"] boolValue];
+ self.overlayController.initialOrientation = [[dict objectForKey:@"orientation"] intValue];
UIWindow *gameWindow;
if (IS_DUALHEAD())