Skip to content

Commit

Permalink
fix(dev): End game early in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
CaedenPH committed Jan 18, 2025
1 parent 524852a commit 41681a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ export class CogSpeedGame {
public async start(time: number | null = null) {
this.ui?.setupGame(this);
this.startTime = time === null ? performance.now() : time;
return this.stop(1);

if (process.env.NODE_ENV === "development") return this.stop(1);

this.maxTestTimeout = setTimeout(this.stop.bind(this), this.config.timeouts.max_test_duration);
this.nextRound();
Expand Down

0 comments on commit 41681a6

Please sign in to comment.