Skip to content
Permalink
Browse files
Fix: don't block races starting on minimized players
  • Loading branch information
RussellLVP committed Jun 21, 2020
1 parent 0cfafa8 commit 8e6aea8b3912d872b9fe4227608c09879a8caf89
Showing 1 changed file with 4 additions and 2 deletions.
@@ -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();

0 comments on commit 8e6aea8

Please sign in to comment.