project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 6908 896ed2afcfb8
parent 6869 a187c280dd3d
child 7048 0a4c88935902
equal deleted inserted replaced
6907:a2f9a9a62dc5 6908:896ed2afcfb8
   157         [alert release];
   157         [alert release];
   158         return NO;
   158         return NO;
   159     }
   159     }
   160 
   160 
   161     // play if there aren't too many teams
   161     // play if there aren't too many teams
   162     if ([self.teamConfigViewController.listOfSelectedTeams count] > HW_getMaxNumberOfTeams()) {
   162     if ((int)[self.teamConfigViewController.listOfSelectedTeams count] > HW_getMaxNumberOfTeams()) {
   163         UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Too many teams",@"")
   163         UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Too many teams",@"")
   164                                                         message:NSLocalizedString(@"You exceeded the maximum number of tems allowed in a game",@"")
   164                                                         message:NSLocalizedString(@"You exceeded the maximum number of tems allowed in a game",@"")
   165                                                        delegate:nil
   165                                                        delegate:nil
   166                                               cancelButtonTitle:NSLocalizedString(@"Ok, got it",@"")
   166                                               cancelButtonTitle:NSLocalizedString(@"Ok, got it",@"")
   167                                               otherButtonTitles:nil];
   167                                               otherButtonTitles:nil];