Fix spurious requeue button during pregame

This commit is contained in:
Liam Westby 2018-10-19 16:20:49 -05:00
parent 0b8bb662ce
commit a8efdcc5c5

View File

@ -372,10 +372,12 @@ export class GameComponent implements OnInit, OnDestroy {
}
if (noneAlive) {
if (this.isSpectator) {
this.countdownRequeue(5);
} else {
this.state = GameState.Finished;
if (this.state === GameState.Playing) {
if (this.isSpectator) {
this.countdownRequeue(5);
} else {
this.state = GameState.Finished;
}
}
this.players.forEach((player: Player, id: string) => {