I had integrated Openfeint with a prior project just fine, but my latest app uses Chipmunk and the following static function throws an error when compiling after adding in Openfeint support:
eachShape(void *ptr, void* unused)
{
cpShape *shape = (cpShape*) ptr;
Sprite *sprite = shape->data;
if( sprite ) {
cpBody *body = shape->body;
[sprite setPosition: cpv( body->p.x, body->p.y)];
[sprite setRotation: (float) CC_RADIANS_TO_DEGREES( -body->a )];
}
}
After integrating Openfeint I now get an error 'invalid conversion from void to sprite' message for the above method. Given it was 4AM and I wanted to get the binary uploaded, I reverted back to a prior version that didn't have Openfeint, but I'd still like to integrate the leader boards.
TIA