Fix decompress bug
This commit is contained in:
parent
5594f4e76f
commit
3271e79971
@ -208,7 +208,7 @@ maps.prototype.decompressMap = function (mapArr, floorId) {
|
|||||||
var mw = core.floors[floorId].width || 13;
|
var mw = core.floors[floorId].width || 13;
|
||||||
var mh = core.floors[floorId].height || 13;
|
var mh = core.floors[floorId].height || 13;
|
||||||
for (var x=0;x<mh;x++) {
|
for (var x=0;x<mh;x++) {
|
||||||
var floorMap = core.floors.map[x] || [];
|
var floorMap = core.floors[floorId].map[x] || [];
|
||||||
if (mapArr[x] === 0) {
|
if (mapArr[x] === 0) {
|
||||||
mapArr[x] = floorMap;
|
mapArr[x] = floorMap;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user