修复一个录像bug

This commit is contained in:
unanmed 2023-04-24 16:39:42 +08:00
parent cba6990e7b
commit 0ad9158bd2
2 changed files with 1 additions and 3 deletions

View File

@ -87,7 +87,6 @@ control.prototype._init = function () {
this.registerReplayAction('getNext', this._replayAction_getNext);
this.registerReplayAction('moveDirectly', this._replayAction_moveDirectly);
this.registerReplayAction('key', this._replayAction_key);
this.registerReplayAction('click', this._replayAction_click);
this.registerReplayAction('ignoreInput', this._replayAction_ignoreInput);
this.registerReplayAction('no', this._replayAction_no);
// --- 注册系统的resize
@ -1795,7 +1794,6 @@ control.prototype.startReplay = function (list) {
////// 更改播放状态 //////
control.prototype.triggerReplay = function () {
console.log(core.dymCanvas.replay.canvas.style.width);
if (core.status.replay.pausing) this.resumeReplay();
else this.pauseReplay();
};

View File

@ -79,7 +79,7 @@ items.prototype.useItem = function (itemId, noRoute, callback) {
const ignore = ['I560', 'I559'];
if (
!this.canUseItem(itemId) ||
(ignore.includes(itemId) && core.isReplaying())
(core.isReplaying() && ignore.includes(itemId))
) {
if (callback) callback();
return;