Skip to content

Commit 4310192

Browse files
author
SeanLin
committed
Merge pull request cocos2d#758 from ShengxiangChen/spriteBug
tileMap test case
2 parents 07cd551 + b1342f5 commit 4310192

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cocos2d/tileMap_parallax_nodes/CCTMXLayer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,10 @@ cc.TMXLayer = cc.SpriteBatchNode.extend(/** @lends cc.TMXLayer# */{
477477
}
478478
}
479479
}
480-
// console.log(this._maxGID , this._tileSet.firstGid , this._minGID , this._tileSet.firstGid)
481-
cc.Assert((this._maxGID >= this._tileSet.firstGid && this._minGID >= this._tileSet.firstGid), "TMX: Only 1 tileset per layer is supported");
480+
481+
if(!((this._maxGID >= this._tileSet.firstGid) && (this._minGID >= this._tileSet.firstGid))){
482+
cc.log("cocos2d:TMX: Only 1 tileset per layer is supported");
483+
}
482484
},
483485

484486
/**

0 commit comments

Comments
 (0)