project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
branchios-revival
changeset 11148 064a53861759
parent 11137 14f50dde3e8c
child 11231 bb3e57426a07
equal deleted inserted replaced
11147:f9c460720e02 11148:064a53861759
    94 
    94 
    95     NSArray *hogs = [teamData objectForKey:@"hedgehogs"];
    95     NSArray *hogs = [teamData objectForKey:@"hedgehogs"];
    96     for (int i = 0; i < numberOfPlayingHogs; i++) {
    96     for (int i = 0; i < numberOfPlayingHogs; i++) {
    97         NSDictionary *hog = [hogs objectAtIndex:i];
    97         NSDictionary *hog = [hogs objectAtIndex:i];
    98 
    98 
    99         NSString *hogLevelHealthAndName = [[NSString alloc] initWithFormat:@"eaddhh %@ %d %@",
    99         NSString *hogLevelHealthAndName = [[NSString alloc] initWithFormat:@"eaddhh %@ %ld %@",
   100                                            [hog objectForKey:@"level"], initialHealth, [hog objectForKey:@"hogname"]];
   100                                            [hog objectForKey:@"level"], (long)initialHealth, [hog objectForKey:@"hogname"]];
   101         [self sendToEngine: hogLevelHealthAndName];
   101         [self sendToEngine: hogLevelHealthAndName];
   102         [hogLevelHealthAndName release];
   102         [hogLevelHealthAndName release];
   103 
   103 
   104         NSString *hogHat = [[NSString alloc] initWithFormat:@"ehat %@", [hog objectForKey:@"hat"]];
   104         NSString *hogHat = [[NSString alloc] initWithFormat:@"ehat %@", [hog objectForKey:@"hat"]];
   105         [self sendToEngine: hogHat];
   105         [self sendToEngine: hogHat];