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) {
|
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, function () {
|
core.moveHero(action, core.replay);
|
||||||
setTimeout(core.replay);
|
|
||||||
});
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user