Update map.js
This commit is contained in:
parent
12cdb8c47a
commit
3fd990ec5b
@ -1642,8 +1642,9 @@ maps.prototype.setBgFgBlock = function (name, number, x, y, floorId) {
|
|||||||
core.setFlag(vFlag, number);
|
core.setFlag(vFlag, number);
|
||||||
core.status[name + "maps"][floorId] = null;
|
core.status[name + "maps"][floorId] = null;
|
||||||
|
|
||||||
if (floorId == core.status.floorId)
|
if (floorId == core.status.floorId){
|
||||||
core.drawMap(floorId);
|
core.clearMap(name);
|
||||||
|
core["draw"+(name=='bg' ? "Bg":"Fg")](floorId);
|
||||||
}
|
}
|
||||||
|
|
||||||
////// 重置地图 //////
|
////// 重置地图 //////
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user