diff --git a/libs/core.js b/libs/core.js index 896989e1..5e699f9f 100644 --- a/libs/core.js +++ b/libs/core.js @@ -203,6 +203,11 @@ core.prototype.init = function (coreData, callback) { document.getElementById("startLogo").innerHTML = core.firstData.title; core.material.items = core.clone(core.items.getItems()); core.material.enemys = core.clone(core.enemys.getEnemys()); + if (main.mode == 'play') { + for (var enemyId in core.material.enemys) { + core.material.enemys[enemyId].id = enemyId; + } + } core.material.icons = core.icons.getIcons(); core.material.events = core.events.getEvents(); diff --git a/libs/maps.js b/libs/maps.js index 859faee7..5a4e2382 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -466,6 +466,7 @@ maps.prototype.drawMap = function (mapName, callback) { } } images.forEach(function (t) { + if (typeof t == 'string') t = [0,0,t]; var dx=parseInt(t[0]), dy=parseInt(t[1]), p=t[2]; if (core.isset(dx) && core.isset(dy) && !core.hasFlag("floorimg_"+mapName+"_"+dx+"_"+dy) && diff --git a/libs/ui.js b/libs/ui.js index 0bec6669..fcaf5936 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -2124,6 +2124,7 @@ ui.prototype.drawThumbnail = function(floorId, canvas, blocks, x, y, size, cente } } images.forEach(function (t) { + if (typeof t == 'string') t = [0,0,t]; var dx=parseInt(t[0]), dy=parseInt(t[1]), p=t[2]; if (core.isset(dx) && core.isset(dy) && !core.hasFlag("floorimg_"+floorId+"_"+dx+"_"+dy) &&