settimeout replay

This commit is contained in:
oc 2018-05-03 01:25:34 +08:00
parent e999acbf21
commit f5f844b617

View File

@ -1541,8 +1541,10 @@ control.prototype.replay = function () {
if (action=='up' || action=='down' || action=='left' || action=='right') { if (action=='up' || action=='down' || action=='left' || action=='right') {
core.moveHero(action, function () { core.moveHero(action, function () {
setTimeout(function() {
core.replay(); core.replay();
}); });
});
return; return;
} }
else if (action.indexOf("item:")==0) { else if (action.indexOf("item:")==0) {