mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2024-11-27 01:20:01 +08:00
Fix spurious requeue button during pregame
This commit is contained in:
parent
0b8bb662ce
commit
a8efdcc5c5
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user