Skip to content

Commit ea15914

Browse files
committed
fixed line 52
1 parent af7e5d3 commit ea15914

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

game/client_types/autoplay.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function(treatmentName, settings, stager, setup, gameRoom) {
3636
id = stepObj.id
3737

3838
if (id === 'sample') {
39-
node.timer.randomDone(10000);
39+
node.timer.randomDone(10000);
4040
}
4141

4242
else if (id === 'continue') {
@@ -48,8 +48,8 @@ module.exports = function(treatmentName, settings, stager, setup, gameRoom) {
4848
else if (id === 'imgscore') {
4949
delay = 2000;
5050
i = -1, len = node.game.settings.NIMAGES;
51-
for ( ; ++i < len ; ) {
52-
setTimeout(function() {
51+
for ( ; ++i < len ; ) {
52+
node.timer.setTimeout(function() {
5353
// because setValues is buggy.
5454
// if (node.player.stage.step === 2) return;
5555
node.game.score.setValues();
@@ -69,7 +69,7 @@ module.exports = function(treatmentName, settings, stager, setup, gameRoom) {
6969
// Kill phantoms in test mode.
7070
console.log('PHANTOMJS EXITING');
7171
});
72-
72+
7373
}
7474
else {
7575
node.timer.randomDone(2000);

0 commit comments

Comments
 (0)