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