--- 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];
Binary file project_files/HedgewarsMobile/Resources/Settings/Images/robotBadge.png has changed
Binary file project_files/HedgewarsMobile/Resources/Settings/Images/robotBadge@2x.png has changed