Skip to content

Commit

Permalink
fix hiding null-players
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryntet committed Aug 7, 2024
1 parent c69f086 commit 2285d6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rust_controller/src/controller/coordinator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ impl FlipUpVMixCoordinator {

self.player_manager.set_focused(&focused_player_id);
player_updater.send(self);
let compare_2x2 = self
let mut compare_2x2 = self
.player_manager
.card(self.available_players())
.into_par_iter()
Expand All @@ -321,7 +321,11 @@ impl FlipUpVMixCoordinator {
})
.collect::<Vec<_>>();
for index in 0..(4 - self.player_manager.card(self.available_players()).len()) {
//compare_2x2.extend(Player::null_player().set_all_compare_2x2_values(index,&self.leaderboard)?);
compare_2x2.extend(Player::null_player().set_all_compare_2x2_values(
index,
&self.leaderboard,
true,
)?);
}
self.queue_add(&compare_2x2);
Ok(())
Expand Down

0 comments on commit 2285d6a

Please sign in to comment.