diff -r 3fd3f116f2fc -r ac5d14a35482 cocoaTouch/otherSrc/CommodityFunctions.m --- a/cocoaTouch/otherSrc/CommodityFunctions.m Fri Apr 16 17:17:43 2010 +0000 +++ b/cocoaTouch/otherSrc/CommodityFunctions.m Sat Apr 17 04:59:10 2010 +0000 @@ -36,21 +36,12 @@ [hedgehogs release]; NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@.plist", teamsDirectory, nameWithoutExt]; - NSLog(@"%@",teamFile); + [theTeam writeToFile:teamFile atomically:YES]; [teamFile release]; [theTeam release]; } -UIImage *mergeHogHatSprites (UIImage *firstImage, UIImage *secondImage) { - UIGraphicsBeginImageContext(firstImage.size); - [firstImage drawAtPoint:CGPointMake(0,0)]; - [secondImage drawAtPoint:CGPointMake(0,-5)]; - UIImage *resultImage = UIGraphicsGetImageFromCurrentImageContext(); - UIGraphicsEndImageContext(); - return resultImage; // autoreleased -} - BOOL rotationManager (UIInterfaceOrientation interfaceOrientation) { if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);