diff -r c7829611c682 -r 616b618814b5 project_files/HedgewarsMobile/Classes/InGameMenuViewController.m --- a/project_files/HedgewarsMobile/Classes/InGameMenuViewController.m Sat Feb 05 23:37:25 2011 +0300 +++ b/project_files/HedgewarsMobile/Classes/InGameMenuViewController.m Sat Feb 05 22:22:16 2011 +0100 @@ -82,10 +82,9 @@ [UIView setAnimationDuration:0.35]; self.view.frame = CGRectMake(screen.size.height, 0, 200, 170); [UIView commitAnimations]; + [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0.35]; } - [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0.35]; - HW_chatEnd(); SDL_iPhoneKeyboardHide((SDL_Window *)HW_getSDLWindow()); } @@ -165,8 +164,11 @@ [UIView commitAnimations]; } - if ([actionSheet cancelButtonIndex] != buttonIndex) + if ([actionSheet cancelButtonIndex] != buttonIndex) { + if (IS_DUALHEAD()) + [[NSNotificationCenter defaultCenter] postNotificationName:@"remove overlay" object:nil]; HW_terminate(NO); + } } @end