Skip to content

Commit 1e9be15

Browse files
author
linshun
committed
2 parents 7c0c80d + a84203b commit 1e9be15

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
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
/**

samples

0 commit comments

Comments
 (0)