settimeout replay
This commit is contained in:
1 parent
e999acbf21
commit
f5f844b617
1 file changed
+3
-1
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user