Skip to content

Commit

Permalink
Fix: don't block races starting on minimized players
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellLVP committed Jun 21, 2020
1 parent 0cfafa8 commit 8e6aea8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions javascript/features/races/race_minigame.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,10 @@ class RaceMinigame extends Minigame {
this.updateTicker();

// Unfreeze all players and allow them to begin racing.
for (const player of this.activePlayers)
player.vehicle.toggleEngine(true);
for (const player of this.activePlayers) {
if (player.vehicle)
player.vehicle.toggleEngine(true);
}

this.startTime_ = highResolutionTime();

Expand Down

0 comments on commit 8e6aea8

Please sign in to comment.