This commit is contained in:
Richard Davey 2018-04-03 17:30:26 +01:00
commit e29de6a9b3
2 changed files with 3 additions and 3 deletions

View file

@ -141,7 +141,7 @@ var RenderTexture = new Class({
*/ */
destroy: function () destroy: function ()
{ {
GameObject.destroy.call(this); GameObject.prototype.destroy.call(this);
if (this.renderer.type === CONST.WEBGL) if (this.renderer.type === CONST.WEBGL)
{ {

View file

@ -220,8 +220,8 @@ var StaticTilemapLayer = new Class({
var tileset = this.tileset; var tileset = this.tileset;
var mapWidth = this.layer.width; var mapWidth = this.layer.width;
var mapHeight = this.layer.height; var mapHeight = this.layer.height;
var width = tileset.image.get().width; var width = tileset.image.source[0].width;
var height = tileset.image.get().height; var height = tileset.image.source[0].height;
var mapData = this.layer.data; var mapData = this.layer.data;
var renderer = this.renderer; var renderer = this.renderer;
var tile; var tile;