Hi,
There is a line to be fixed in source. It is line 55 in file CCPointExtension.h
there is:
#define ccp(__X__,__Y__) cocos2d::CCPointMake((float)__X__, (float)__Y__)
there should be:
#define ccp(__X__,__Y__) cocos2d::CCPointMake((float)(__X__), (float)(__Y__))
Example code in which bug reveals
@
CCSprite *target = CCSprite::spriteWithFile(“Target.png”, CCRectMake(0, 0, 27, 40) );
target->setPosition( ccp(rand() ((int)size.width), rand() ((int)size.height/2)) );
@
Cause
Casts in #define are being done on result of rand() instead on whole expression
Regards Piotr