Fix replay stackoverflow
This commit is contained in:
parent
2ab0ccb4a9
commit
bd1c664fb3
@ -1568,9 +1568,7 @@ control.prototype.__replay_getTimeout = function () {
|
||||
|
||||
control.prototype._replayAction_move = function (action) {
|
||||
if (["up","down","left","right"].indexOf(action)<0) return false;
|
||||
core.moveHero(action, function () {
|
||||
setTimeout(core.replay);
|
||||
});
|
||||
core.moveHero(action, core.replay);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user