diff --git a/libs/maps.js b/libs/maps.js index c9c42891..ba9653c8 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -214,6 +214,9 @@ maps.prototype.load = function (data, floorId) { ////// 将当前地图重新变成二维数组形式 ////// maps.prototype.getMapArray = function (blockArray,width,height){ + width=width||13; + height=height||13; + var blocks = []; for (var x=0;x