Fix compressMap bug
This commit is contained in:
parent
bd1c664fb3
commit
2167a6eabe
@ -358,10 +358,8 @@ maps.prototype.saveMap = function (floorId) {
|
|||||||
|
|
||||||
var map = maps[floorId];
|
var map = maps[floorId];
|
||||||
var thisFloor = this._compressFloorData(map, core.floors[floorId]);
|
var thisFloor = this._compressFloorData(map, core.floors[floorId]);
|
||||||
if (map.blocks) {
|
var mapArr = this.compressMap(map.blocks ? this._getMapArrayFromBlocks(map.blocks, map.width, map.height, true) : map.map, floorId);
|
||||||
var mapArr = this.compressMap(this._getMapArrayFromBlocks(map.blocks, map.width, map.height, true), floorId);
|
if (mapArr != null) thisFloor.map = mapArr;
|
||||||
if (mapArr != null) thisFloor.map = mapArr;
|
|
||||||
}
|
|
||||||
return thisFloor;
|
return thisFloor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user