Permalink
Browse files

Fixed issue #1142

Templates don't generate analyze warnings
  • Loading branch information...
1 parent 7700570 commit 234454406e9c164ad9a4bf6cf010ab0a37629183 @ricardoquesada ricardoquesada committed Mar 24, 2011
View
3 CHANGELOG
@@ -1,13 +1,14 @@
version 1.0-rc - XX-Apr-2011
. [NEW] Actions: Added the possibility to create a CCSpawn and CCSequence with an NSArray
. [NEW] CCArray: Added exchangeObject & exchangeObjectAtIndex (issue #1085)
-. [NEW] Templates: Added Xcode4 templates for cocos2d, cocos2d+box2d, cocos2d+chipmunk
+. [NEW] Templates: Added Xcode4 templates for cocos2d, cocos2d+box2d, cocos2d+chipmunk, cocos2d Mac
. [NEW] Tempaltes: Possibility to run the installer from any directory
. [NEW] TextureAtlas: added possibility to draw the quads in parts
. [FIX] All: Removed many deprecated methods and classes that were scheduled for removal on v1.0
. [FIX] Documentation: Drawing primitives fixed syntax error (issue #1127)
. [FIX] Documentation: onExit doxystring improved (issue #1135)
. [FIX] ProgressTimer: fixed underflow in setPercentage() (issue #1123)
+. [FIX] Templates: Don't generate analyze warnings in Xcode4 (issue #1142)
. [FIX] Xcode: TexturePVR compiles when using cocos2d as an external library (issue #1132)
. [FIX] Xcode: Added SKIP_INSTALL=YES in libraries for Xcode4 (issue #1137)
. [FIX-MAC] All: Code is 64-bit friendly. No more warnings when casting from 64 to 32 bits
View
3 templates/Xcode4_templates/cocos2d.xctemplate/RootViewController.m
@@ -108,7 +108,8 @@ -(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrien
// BUG: This won't work if the EAGLView is not fullscreen
///
CGRect screenRect = [[UIScreen mainScreen] bounds];
- CGRect rect;
+ CGRect rect = CGRectZero;
+
if(toInterfaceOrientation == UIInterfaceOrientationPortrait || toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)
rect = screenRect;
View
3 templates/Xcode4_templates/cocos2d_box2d.xctemplate/RootViewController.m
@@ -108,7 +108,8 @@ -(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrien
// BUG: This won't work if the EAGLView is not fullscreen
///
CGRect screenRect = [[UIScreen mainScreen] bounds];
- CGRect rect;
+ CGRect rect = CGRectZero;
+
if(toInterfaceOrientation == UIInterfaceOrientationPortrait || toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)
rect = screenRect;
View
3 templates/Xcode4_templates/cocos2d_chipmunk.xctemplate/RootViewController.m
@@ -108,7 +108,8 @@ -(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrien
// BUG: This won't work if the EAGLView is not fullscreen
///
CGRect screenRect = [[UIScreen mainScreen] bounds];
- CGRect rect;
+ CGRect rect = CGRectZero;
+
if(toInterfaceOrientation == UIInterfaceOrientationPortrait || toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)
rect = screenRect;

0 comments on commit 2344544

Please sign in to comment.