fix _drawAutotile bug

This commit is contained in:
oc 2019-04-09 23:47:03 +08:00
parent f93c6d03f0
commit 3f030ff010

View File

@ -977,10 +977,10 @@ maps.prototype._drawAutotileAnimate = function (block, animate) {
if (block.name) { if (block.name) {
if (block.name == 'bg') if (block.name == 'bg')
core.drawImage('bg', core.material.groundCanvas.canvas, 32 * x, 32 * y); core.drawImage('bg', core.material.groundCanvas.canvas, 32 * x, 32 * y);
this.drawAutotile(cv, core.status.autotileAnimateObjs[block.name+"map"], block, 32, 0, 0, animate); this._drawAutotile(cv, core.status.autotileAnimateObjs[block.name+"map"], block, 32, 0, 0, animate);
} }
else { else {
this.drawAutotile(cv, core.status.autotileAnimateObjs.map, block, 32, 0, 0, animate); this._drawAutotile(cv, core.status.autotileAnimateObjs.map, block, 32, 0, 0, animate);
} }
} }