Sync the player sooner when the move is validated
continuous-integration/drone/push Build is passing Details

main
Clément FRÉVILLE 2 years ago
parent 63fb8de947
commit 915949fb98

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

Loading…
Cancel
Save