Fix showImage with flag
This commit is contained in:
parent
e4d985c8b6
commit
efacefbc58
@ -1548,7 +1548,7 @@ events.prototype.changeFloor = function (floorId, stair, heroLoc, time, callback
|
||||
////// 绘制图片 //////
|
||||
events.prototype.showImage = function (name, x, y) {
|
||||
if (core.isset(name) && core.isset(x) && core.isset(y) && core.isset(core.material.images.images[name])) {
|
||||
core.canvas.image.drawImage(core.material.images.images[name], x, y);
|
||||
core.canvas.image.drawImage(core.material.images.images[name], core.calValue(x), core.calValue(y));
|
||||
}
|
||||
else core.clearMap('image');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user