Merge pull request #502 from minggo/iss686

fixed #686: set z tag of appended tile
This commit is contained in:
minggo 2011-09-05 23:52:00 -07:00
commit ae056a07b1
1 changed files with 4 additions and 0 deletions

View File

@ -381,6 +381,10 @@ namespace cocos2d {
// append should be after addQuadFromSprite since it modifies the quantity values
ccCArrayInsertValueAtIndex(m_pAtlasIndexArray, (void*)z, indexForZ);
// set z tag
addSpriteWithoutQuad(m_pReusedTile, indexForZ, z);
m_pReusedTile->release();
return m_pReusedTile;
}