project_files/HedgewarsMobile/Classes/GameSetup.m
changeset 3660 bc125bea5849
parent 3642 fb39fecca350
child 3670 4c673e57f0d7
equal deleted inserted replaced
3659:f8d5ac50e307 3660:bc125bea5849
    54     NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@", TEAMS_DIRECTORY(), teamName];
    54     NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@", TEAMS_DIRECTORY(), teamName];
    55     NSDictionary *teamData = [[NSDictionary alloc] initWithContentsOfFile:teamFile];
    55     NSDictionary *teamData = [[NSDictionary alloc] initWithContentsOfFile:teamFile];
    56     [teamFile release];
    56     [teamFile release];
    57     
    57     
    58     NSString *teamHashColorAndName = [[NSString alloc] initWithFormat:@"eaddteam %@ %@ %@", 
    58     NSString *teamHashColorAndName = [[NSString alloc] initWithFormat:@"eaddteam %@ %@ %@", 
    59                                       [teamData objectForKey:@"hash"], [teamColor stringValue], [teamData objectForKey:@"teamname"]];
    59                                       [teamData objectForKey:@"hash"], [teamColor stringValue], [teamName stringByDeletingPathExtension]];
    60     [self sendToEngine: teamHashColorAndName];
    60     [self sendToEngine: teamHashColorAndName];
    61     [teamHashColorAndName release];
    61     [teamHashColorAndName release];
    62     
    62     
    63     NSString *grave = [[NSString alloc] initWithFormat:@"egrave %@", [teamData objectForKey:@"grave"]];
    63     NSString *grave = [[NSString alloc] initWithFormat:@"egrave %@", [teamData objectForKey:@"grave"]];
    64     [self sendToEngine: grave];
    64     [self sendToEngine: grave];