Sync the player sooner when the move is validated
This commit is contained in:
1 parent
63fb8de947
commit
915949fb98
1 file changed
+1
@@ -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