settimeout replay

This commit is contained in:
oc committed 2018-05-03 01:25:34 +08:00
1 parent e999acbf21
commit f5f844b617
1 file changed
+3 -1
+3 -1
View File
@@ -1541,7 +1541,9 @@ control.prototype.replay = function () {
if (action=='up' || action=='down' || action=='left' || action=='right') {
core.moveHero(action, function () {
core.replay();
setTimeout(function() {
core.replay();
});
});
return;
}