Skip to content

Commit

Permalink
send matche update more quickly if spectator join
Browse files Browse the repository at this point in the history
  • Loading branch information
a-boring-man committed Apr 19, 2023
1 parent ef27bb7 commit 0db96f6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ export class GameUpdateCenterGateway implements OnGatewayInit, OnGatewayConnecti
if (this.socketID_UserEntity.get(game.players[0].id).login === body.player1_login) {
game.spectators.push(client);
client.join(game.players[0].id);
game.game_engine.update_match_state();
}
}
}
Expand Down

0 comments on commit 0db96f6

Please sign in to comment.