We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7625920 + 950ff65 commit 7cb4559Copy full SHA for 7cb4559
cocos2d/CCTiledMapLayer.m
@@ -117,7 +117,7 @@ -(id) initWithTilesetInfo:(CCTiledMapTilesetInfo*)tilesetInfo layerInfo:(CCTiled
117
_mapTileSize = mapInfo.tileSize;
118
_layerOrientation = mapInfo.orientation;
119
120
- CGFloat pixelsToPoints = 1.0/tex.contentScale;
+ CGFloat pixelsToPoints = tex ? 1.0/tex.contentScale : 1.0;
121
122
// offset (after layer orientation is set);
123
CGPoint offset = [self calculateLayerOffset:layerInfo.offset];
0 commit comments