From bff53b3fe3334fd51be1670d03523613e100b028 Mon Sep 17 00:00:00 2001 From: zhangbin Date: Thu, 14 Apr 2016 17:30:13 +0800 Subject: [PATCH] Solve the error effect in web when using rotated tile in TiledMap. --- cocos2d/tilemap/CCSGTMXLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/tilemap/CCSGTMXLayer.js b/cocos2d/tilemap/CCSGTMXLayer.js index 71f120092b..7a25435a3d 100644 --- a/cocos2d/tilemap/CCSGTMXLayer.js +++ b/cocos2d/tilemap/CCSGTMXLayer.js @@ -796,7 +796,7 @@ _ccsg.TMXLayer = cc.SpriteBatchNode.extend(/** @lends _ccsg.TMXLayer# */{ sprite.setFlippedY(false); // Rotation in tiled is achieved using 3 flipped states, flipping across the horizontal, vertical, and diagonal axes of the tiles. - if ((gid & cc.TiledMap.TileFlag.DIAGONAL_FLAG) >>> 0) { + if ((gid & cc.TiledMap.TileFlag.DIAGONAL) >>> 0) { // put the anchor in the middle for ease of rotation. sprite.anchorX = 0.5; sprite.anchorY = 0.5;