mirror of
https://github.com/photonstorm/phaser
synced 2025-01-09 11:48:50 +00:00
Update Tile.js
This commit is contained in:
parent
4007e92be0
commit
4ca9f5dbf1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue