Fix callSave bug
This commit is contained in:
parent
d702ef4d3f
commit
b9a50fe131
@ -2061,10 +2061,6 @@ control.prototype.save = function(need) {
|
|||||||
control.prototype.load = function (need) {
|
control.prototype.load = function (need) {
|
||||||
if (core.isReplaying()) return;
|
if (core.isReplaying()) return;
|
||||||
|
|
||||||
if (core.status.event.id == 'load' && core.events.recoverEvents(core.status.event.interval)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var saveIndex = core.saves.saveIndex;
|
var saveIndex = core.saves.saveIndex;
|
||||||
var page=parseInt((saveIndex-1)/5), offset=saveIndex-5*page;
|
var page=parseInt((saveIndex-1)/5), offset=saveIndex-5*page;
|
||||||
|
|
||||||
@ -2080,6 +2076,10 @@ control.prototype.load = function (need) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (core.status.event.id == 'load' && core.events.recoverEvents(core.status.event.interval)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!core.checkStatus('load', need))
|
if (!core.checkStatus('load', need))
|
||||||
return;
|
return;
|
||||||
core.ui.drawSLPanel(10*page+offset);
|
core.ui.drawSLPanel(10*page+offset);
|
||||||
|
|||||||
@ -147,6 +147,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
// 如果是读档,则进行检查
|
// 如果是读档,则进行检查
|
||||||
if (fromLoad) {
|
if (fromLoad) {
|
||||||
core.events.recoverEvents(core.getFlag("__events__"));
|
core.events.recoverEvents(core.getFlag("__events__"));
|
||||||
|
core.removeFlag("__events__");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// 每次抵达楼层执行的事件
|
// 每次抵达楼层执行的事件
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user