diff --git a/_server/editor.js b/_server/editor.js index 9b1bc7ab..937d5dd0 100644 --- a/_server/editor.js +++ b/_server/editor.js @@ -113,6 +113,9 @@ editor.prototype.idsInit = function (maps, icons) { var imgName = core.tilesets[i]; var img = core.material.images.tilesets[imgName]; var width = Math.floor(img.width/32), height = Math.floor(img.height/32); + if(img.width%32 || img.height%32){ + alert(imgName+'的长或宽不是32的整数倍, 请修改后刷新页面') + } for (var id=startOffset; id