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