project_files/HedgewarsMobile/Classes/HogHatViewController.m
branchios-revival
changeset 11148 064a53861759
parent 10108 c68cf030eded
child 11182 55f20efae2e4
equal deleted inserted replaced
11147:f9c460720e02 11148:064a53861759
    99 
    99 
   100 
   100 
   101 #pragma mark -
   101 #pragma mark -
   102 #pragma mark Table view delegate
   102 #pragma mark Table view delegate
   103 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   103 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   104     int newRow = [indexPath row];
   104     NSInteger newRow = [indexPath row];
   105     int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
   105     NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
   106 
   106 
   107     if (newRow != oldRow) {
   107     if (newRow != oldRow) {
   108         // if the two selected rows differ update data on the hog dictionary and reload table content
   108         // if the two selected rows differ update data on the hog dictionary and reload table content
   109         // TODO: maybe this section could be cleaned up
   109         // TODO: maybe this section could be cleaned up
   110         NSDictionary *oldHog = [[teamDictionary objectForKey:@"hedgehogs"] objectAtIndex:selectedHog];
   110         NSDictionary *oldHog = [[teamDictionary objectForKey:@"hedgehogs"] objectAtIndex:selectedHog];