--- a/project_files/HedgewarsMobile/Classes/WeaponCellView.m Thu Jul 15 03:28:29 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/WeaponCellView.m Thu Jul 15 04:31:25 2010 +0200
@@ -144,8 +144,12 @@
delLab.text = ((int)delayQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)delayQt.value];
craLab.text = ((int)crateQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)crateQt.value];
- [(UISlider *)sender setTag:self.tag];
- [delegate valueChanged:sender];
+ [delegate updateValues:[NSArray arrayWithObjects:
+ [NSNumber numberWithInt:(int)initialQt.value],
+ [NSNumber numberWithInt:(int)probabilityQt.value],
+ [NSNumber numberWithInt:(int)delayQt.value],
+ [NSNumber numberWithInt:(int)crateQt.value], nil]
+ atIndex:self.tag];
} else
DLog(@"error - delegate = nil!");
}