From 06a28348f95b2d66af20ec521915d0bc7488d275 Mon Sep 17 00:00:00 2001 From: oc Date: Sat, 1 Sep 2018 00:39:15 +0800 Subject: [PATCH] Fix _export --- libs/maps.js | 5 ++++- libs/utils.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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