Skip to content

Commit

Permalink
Pass bot names as player_name in game info
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanzlatarev authored Oct 5, 2024
1 parent 40e7596 commit 078ff71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy_controller/src/websocket/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,10 @@ impl Player {
if response.has_game_info() {
for pi in &mut response.mut_game_info().player_info {
if pi.player_id() != r_vars.player_id() {
pi.player_name = Some(config.players[&player_num.other_player()].name.clone());
pi.race_actual = pi.race_requested;
} else {
pi.player_name = Some(config.players[&player_num].name.clone());
}
}
}
Expand Down

0 comments on commit 078ff71

Please sign in to comment.