fixed CCSpriteLoader's flipX bug.

This commit is contained in:
M.W. Park 2012-09-20 12:47:45 +09:00
parent b4b9a1be2b
commit d042e8557d
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ void CCSpriteLoader::onHandlePropTypeSpriteFrame(CCNode * pNode, CCNode * pParen
void CCSpriteLoader::onHandlePropTypeFlip(CCNode * pNode, CCNode * pParent, CCString * pPropertyName, bool * pFlip, CCBReader * pCCBReader) {
if(pPropertyName->compare(PROPERTY_FLIP) == 0) {
((CCSprite *)pNode)->setFlipX(pFlip[0]);
((CCSprite *)pNode)->setFlipX(pFlip[1]);
((CCSprite *)pNode)->setFlipY(pFlip[1]);
} else {
CCNodeLoader::onHandlePropTypeFlip(pNode, pParent, pPropertyName, pFlip, pCCBReader);
}