project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
changeset 4811 3edc0cdcfe03
parent 4538 4c2dc9d75742
child 4920 bc3c077e15a2
--- a/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Mon Jan 03 10:45:50 2011 -0500
+++ b/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Tue Jan 04 01:21:30 2011 +0100
@@ -183,8 +183,8 @@
         NSString *teamPath = [NSString stringWithFormat:@"%@/%@.plist",TEAMS_DIRECTORY(),cell.textLabel.text];
         NSDictionary *firstHog = [[[NSDictionary dictionaryWithContentsOfFile:teamPath] objectForKey:@"hedgehogs"] objectAtIndex:0];
         if ([[firstHog objectForKey:@"level"] intValue] != 0) {
-            NSString *filePath = [NSString stringWithFormat:@"%@/cyborg.png",HATS_DIRECTORY()];
-            UIImage *sprite = [[UIImage alloc] initWithContentsOfFile:filePath andCutAt:CGRectMake(0, 2, 32, 32)];
+            NSString *filePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Settings/Images/robotBadge.png"];
+            UIImage *sprite = [[UIImage alloc] initWithContentsOfFile:filePath];
             UIImageView *spriteView = [[UIImageView alloc] initWithImage:sprite];
             [sprite release];