fixed #686: set z tag of appended tile

This commit is contained in:
minggo 2011-09-06 14:01:08 +08:00
parent 90e2ffc041
commit e2bb1d49e5
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;
}