Update Tile.js

This commit is contained in:
svipal 2020-02-08 11:47:43 +01:00 committed by GitHub
parent 4007e92be0
commit 4ca9f5dbf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ var Tile = new Class({
* @type {integer} * @type {integer}
* @since 3.0.0 * @since 3.0.0
*/ */
this.baseWidth = (baseWidth !== undefined && !baseWidth.isNaN()) ? baseWidth : width; this.baseWidth = (baseWidth !== undefined) ? baseWidth : width;
/** /**
* The map's base height of a tile in pixels. Tiled maps support multiple tileset sizes * The map's base height of a tile in pixels. Tiled maps support multiple tileset sizes
@ -122,7 +122,7 @@ var Tile = new Class({
* @type {integer} * @type {integer}
* @since 3.0.0 * @since 3.0.0
*/ */
this.baseHeight = (baseHeight !== undefined && !baseWidth.isNaN()) ? baseHeight : height; this.baseHeight = (baseHeight !== undefined) ? baseHeight : height;
/** /**
* The x coordinate of the top left of this tile in pixels. This is relative to the top left * The x coordinate of the top left of this tile in pixels. This is relative to the top left