diff --git a/framework_crates/bones_framework/src/networking.rs b/framework_crates/bones_framework/src/networking.rs index 4a4341d25..6f5c5d0aa 100644 --- a/framework_crates/bones_framework/src/networking.rs +++ b/framework_crates/bones_framework/src/networking.rs @@ -484,7 +484,10 @@ where // If local input is disabled, we still submit a default value representing no-inputs. // This way if input is disabled current inputs will not be held down indefinitely. self.session - .add_local_input(self.local_player_idx as usize, InputTypes::Dense::default()) + .add_local_input( + self.local_player_idx as usize, + InputTypes::Dense::default(), + ) .unwrap(); } diff --git a/framework_crates/bones_framework/src/networking/online.rs b/framework_crates/bones_framework/src/networking/online.rs index 92c466c00..21dac1ae8 100644 --- a/framework_crates/bones_framework/src/networking/online.rs +++ b/framework_crates/bones_framework/src/networking/online.rs @@ -44,7 +44,7 @@ pub struct OnlineMatchmaker(BiChannelClient, id: NodeId, - player_count: usize, + player_count: u32, ) -> anyhow::Result<()> { info!("Connecting to online matchmaker"); let ep = get_network_endpoint().await; @@ -176,7 +176,7 @@ async fn search_for_game( } /// Search for game with `matchmaking_server` and `player_count` -pub fn start_search_for_game(matchmaking_server: NodeId, player_count: usize) { +pub fn start_search_for_game(matchmaking_server: NodeId, player_count: u32) { // TODO remove info!("Starting search for online game with player count {player_count}"); ONLINE_MATCHMAKER