aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 4ee5e14..210909b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,6 +1,7 @@
use crate::shared::champion::*;
use crate::shared::faction::*;
use clap::Parser;
+use lightyear::connection::id::ClientId;
use lightyear::transport::io::TransportConfig;
use rand::Rng;
use shared::SERVER_PORT;
@@ -42,7 +43,7 @@ fn main() {
let client_addr = SocketAddr::new(Ipv4Addr::UNSPECIFIED.into(), SERVER_PORT + client_id);
client::main(
Some(server_addr),
- client_id as u64,
+ ClientId::Netcode(client_id as u64),
TransportConfig::UdpSocket(client_addr),
cli.champion,
cli.faction,
@@ -60,7 +61,7 @@ fn main() {
client::main(
None,
- client_id as u64,
+ ClientId::Netcode(client_id as u64),
TransportConfig::LocalChannel {
recv: from_server_recv,
send: to_server_send,