Fix v2.7 bug

This commit is contained in:
ckcz123 2020-06-12 12:32:57 +08:00
parent 8ae45444d6
commit c6ea15e807
3 changed files with 4 additions and 1 deletions

View File

@ -1262,6 +1262,7 @@ control.prototype.rewindReplay = function () {
return core.drawTip("无法再回到上一个节点");
var save = core.status.replay.save, data = save.pop();
core.loadData(data.data, function () {
core.removeFlag('__fromLoad__');
core.status.replay = {
"replaying": true,
"pausing": true,
@ -1760,6 +1761,7 @@ control.prototype._doSL_replayLoad_afterGet = function (id, data) {
if (route == null || data.hero.flags.__seed__ != core.getFlag('__seed__'))
return core.drawTip("无法从此存档回放录像");
core.loadData(data, function () {
core.removeFlag('__fromLoad__');
core.startReplay(route);
core.drawTip("回退到存档节点");
});

View File

@ -1370,7 +1370,7 @@ events.prototype._action_setBlock = function (data, x, y, prefix) {
events.prototype._action_turnBlock = function (data, x, y, prefix) {
data.loc = this.__action_getLoc2D(data.loc, x, y, prefix);
data.loc.forEach(function (t) {
core.turnBlock(data.number, t[0], t[1], data.floorId);
core.turnBlock(data.direction, t[0], t[1], data.floorId);
});
core.doAction();
}

View File

@ -981,6 +981,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
core.playBgm(core.getFlag("__bgm__"));
}
core.removeFlag('__fromLoad__');
if (callback) callback();
});
},