Sync the player sooner when the move is validated
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user