project_files/HedgewarsMobile/Classes/HogHatViewController.m
changeset 5983 f0925204f50e
parent 5208 878e551f0b4a
child 6074 047eaed35cbb
--- a/project_files/HedgewarsMobile/Classes/HogHatViewController.m	Wed Sep 21 22:51:52 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/HogHatViewController.m	Wed Sep 21 23:15:44 2011 +0200
@@ -42,8 +42,8 @@
     self.hatArray = array;
 
     // load the base hog image, drawing will occure in cellForRow...
-    NSString *normalHogFile = [[NSString alloc] initWithFormat:@"%@/Hedgehog.png",GRAPHICS_DIRECTORY()];
-    UIImage *hogSprite = [[UIImage alloc] initWithContentsOfFile:normalHogFile andCutAt:CGRectMake(96, 0, 32, 32)];
+    NSString *normalHogFile = [[NSString alloc] initWithFormat:@"%@/basehat-hedgehog.png",[[NSBundle mainBundle] resourcePath]];
+    UIImage *hogSprite = [[UIImage alloc] initWithContentsOfFile:normalHogFile];
     [normalHogFile release];
     self.normalHogSprite = hogSprite;
     [hogSprite release];