Browse files

Merge pull request #502 from minggo/iss686

fixed #686: set z tag of appended tile
  • Loading branch information...
2 parents 78328e7 + e73032b commit 49414ba3e90ecd05d3a05abf7c9082ffa4d8c91a @minggo minggo committed Sep 5, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 cocos2dx/tileMap_parallax_nodes/CCTMXLayer.cpp
View
4 cocos2dx/tileMap_parallax_nodes/CCTMXLayer.cpp
@@ -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;
}

0 comments on commit 49414ba

Please sign in to comment.