project_files/HedgewarsMobile/Classes/MapConfigViewController.m
branchios-revival
changeset 11148 064a53861759
parent 10108 c68cf030eded
child 11206 2e80c9861818
equal deleted inserted replaced
11147:f9c460720e02 11148:064a53861759
   177 }
   177 }
   178 
   178 
   179 #pragma mark -
   179 #pragma mark -
   180 #pragma mark Table view delegate
   180 #pragma mark Table view delegate
   181 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   181 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   182     int newRow = [indexPath row];
   182     NSInteger newRow = [indexPath row];
   183     int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
   183     NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
   184 
   184 
   185     if (newRow != oldRow) {
   185     if (newRow != oldRow) {
   186         NSArray *source = [self.dataSourceArray objectAtIndex:scIndex];
   186         NSArray *source = [self.dataSourceArray objectAtIndex:scIndex];
   187         if (isRandomness()) {
   187         if (isRandomness()) {
   188             // just change the theme, don't update preview
   188             // just change the theme, don't update preview