Fix curtain bug

This commit is contained in:
oc committed 2018-12-25 21:22:36 +08:00
1 parent ccae1b9ba1
commit 700390a3ac
2 files changed
+6

No files matched your search

+2
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();
+4
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))