This commit is contained in:
oc 2019-06-02 10:23:46 +08:00
parent 2899167a3b
commit 718852b9ef
2 changed files with 3 additions and 3 deletions

View File

@ -58,8 +58,8 @@ editor_file = function (editor, callback) {
title = "主塔 "+name+" 层";
}
var width = parseInt(document.getElementById('newMapsWidth').value);
var height = parseInt(document.getElementById('newMapsHeight').value);
var width = parseInt(document.getElementById('newMapWidth').value);
var height = parseInt(document.getElementById('newMapHeight').value);
var row = [], map = [];
for (var i=0;i<width;i++) row.push(0);
for (var i=0;i<height;i++) map.push(row);

View File

@ -1935,7 +1935,7 @@ events.prototype.doEffect = function (effect, need, times) {
////// 设置楼层属性 //////
events.prototype.setFloorInfo = function (name, value, floorId, prefix) {
floorId = floorId || data.floorId;
floorId = floorId || core.status.floorId;
core.status.maps[floorId][name] = core.calValue(value, prefix);
core.updateStatusBar();
}