Update map.js

This commit is contained in:
voderl 2019-10-24 20:55:48 +08:00 committed by GitHub
parent 12cdb8c47a
commit 3fd990ec5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1642,8 +1642,9 @@ maps.prototype.setBgFgBlock = function (name, number, x, y, floorId) {
core.setFlag(vFlag, number);
core.status[name + "maps"][floorId] = null;
if (floorId == core.status.floorId)
core.drawMap(floorId);
if (floorId == core.status.floorId){
core.clearMap(name);
core["draw"+(name=='bg' ? "Bg":"Fg")](floorId);
}
////// 重置地图 //////