Skip to content

Commit

Permalink
fix(round): Restart tick on restart round
Browse files Browse the repository at this point in the history
  • Loading branch information
Eronne committed Jun 23, 2020
1 parent a0b58b2 commit e5ff822
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/classes/scenes/RoundScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class RoundScene {
}

restart() {
this.tick = setInterval(() => this.emitTick, gameProperties.tick);
this.tick = setInterval(() => this.emitTick(), gameProperties.tick);
this.timer = setTimeout(() => this.fail(enums.round.FailCauses.timer), this.remainingTime);
this.startTimestamp = new Date();
}
Expand Down Expand Up @@ -229,7 +229,6 @@ export class RoundScene {
}

memberUpdateManager(payload: payloads.round.MemberUpdateManager) {
console.log(events.round.memberUpdateManager, payload);
this.members[payload.memberId].manager = payload.playerId;
}

Expand Down

0 comments on commit e5ff822

Please sign in to comment.