Fix callSave bug

This commit is contained in:
oc 2018-12-30 01:54:21 +08:00
parent d702ef4d3f
commit b9a50fe131
2 changed files with 5 additions and 4 deletions

View File

@ -2061,10 +2061,6 @@ control.prototype.save = function(need) {
control.prototype.load = function (need) {
if (core.isReplaying()) return;
if (core.status.event.id == 'load' && core.events.recoverEvents(core.status.event.interval)) {
return;
}
var saveIndex = core.saves.saveIndex;
var page=parseInt((saveIndex-1)/5), offset=saveIndex-5*page;
@ -2080,6 +2076,10 @@ control.prototype.load = function (need) {
return;
}
if (core.status.event.id == 'load' && core.events.recoverEvents(core.status.event.interval)) {
return;
}
if (!core.checkStatus('load', need))
return;
core.ui.drawSLPanel(10*page+offset);

View File

@ -147,6 +147,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
// 如果是读档,则进行检查
if (fromLoad) {
core.events.recoverEvents(core.getFlag("__events__"));
core.removeFlag("__events__");
}
else {
// 每次抵达楼层执行的事件