project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m
changeset 3737 2ba6ac8a114b
parent 3701 8c449776ebe6
child 3766 36b625111609
equal deleted inserted replaced
3736:d8982f9e7e2c 3737:2ba6ac8a114b
    21 #pragma mark -
    21 #pragma mark -
    22 #pragma mark View lifecycle
    22 #pragma mark View lifecycle
    23 -(void) viewDidLoad {
    23 -(void) viewDidLoad {
    24     [super viewDidLoad];
    24     [super viewDidLoad];
    25 
    25 
       
    26     // also increment CURRENT_AMMOSIZE in CommodityFunctions.h
    26     NSArray *array = [[NSArray alloc] initWithObjects:
    27     NSArray *array = [[NSArray alloc] initWithObjects:
    27                       NSLocalizedString(@"Grenade",@""),
    28                       NSLocalizedString(@"Grenade",@""),
    28                       NSLocalizedString(@"Cluster Bomb",@""),
    29                       NSLocalizedString(@"Cluster Bomb",@""),
    29                       NSLocalizedString(@"Bazooka",@""),
    30                       NSLocalizedString(@"Bazooka",@""),
    30                       NSLocalizedString(@"Homing Bee",@""),
    31                       NSLocalizedString(@"Homing Bee",@""),
    68                       NSLocalizedString(@"Portable Portal Device",@""),
    69                       NSLocalizedString(@"Portable Portal Device",@""),
    69                       NSLocalizedString(@"Piano Attack",@""),
    70                       NSLocalizedString(@"Piano Attack",@""),
    70                       NSLocalizedString(@"Old Limburger",@""),
    71                       NSLocalizedString(@"Old Limburger",@""),
    71                       NSLocalizedString(@"Sine Gun",@""),
    72                       NSLocalizedString(@"Sine Gun",@""),
    72                       NSLocalizedString(@"Flamethrower",@""),
    73                       NSLocalizedString(@"Flamethrower",@""),
       
    74                       NSLocalizedString(@"Sticky Mine",@""),
       
    75                       NSLocalizedString(@"Hammer",@""),
    73                       nil];
    76                       nil];
    74     self.ammoNames = array;
    77     self.ammoNames = array;
    75     [array release];
    78     [array release];
    76 
    79 
    77     quantity = (char *)malloc(sizeof(char)*(CURRENT_AMMOSIZE+1));
    80     quantity = (char *)malloc(sizeof(char)*(CURRENT_AMMOSIZE+1));