Fix curtain bug

This commit is contained in:
oc 2018-12-25 21:22:36 +08:00
parent ccae1b9ba1
commit 700390a3ac
2 changed files with 6 additions and 0 deletions

View File

@ -587,6 +587,8 @@ maps.prototype.drawMap = function (floorId, callback) {
}
} else {
drawEvent();
if (core.isset(core.status.curtainColor))
core.fillRect('curtain',0,0,416,416,core.arrayToRGBA(core.status.curtainColor));
core.setGlobalAnimate(core.values.animateSpeed);
core.drawHero();
core.updateStatusBar();

View File

@ -127,6 +127,10 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
core.fillRect('curtain',0,0,416,416,core.arrayToRGBA(color));
core.status.curtainColor = color;
}
else {
core.clearMap('curtain');
core.status.curtainColor = null;
}
// 更改天气
var weather = core.getFlag('__weather__', null);
if (!core.isset(weather) && core.isset(core.status.maps[floorId].weather))