Sync the player sooner when the move is validated

This commit is contained in:
2023-03-23 11:33:10 +01:00
parent 63fb8de947
commit 915949fb98

View File

@@ -248,6 +248,7 @@ impl Room {
.expect("A placed tile should not be empty.")
})
.collect::<Vec<Tile>>();
self.sync_hand(player_id);
self.players[player_id].score += calc_score(&tiles_placed);
self.broadcast(ServerMessage::SyncScore(
player_id,