From 44ef37bca0aa633f8c59d849946faf2319c5446b Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 6 Jan 2025 20:04:29 +0100 Subject: a --- world/src/main.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'world/src/main.rs') diff --git a/world/src/main.rs b/world/src/main.rs index 4f433ba..d7272fe 100644 --- a/world/src/main.rs +++ b/world/src/main.rs @@ -115,18 +115,18 @@ fn main() -> Result<()> { let ob = Object::new(); Packet::Add(ob, store.set(&prefab.write_alloc())?).write(&mut sock)?; - let mut sock2 = sock.try_clone().unwrap(); - thread::spawn(move || { - let mut x = 0.; - loop { - Packet::Position(ob, Vec3A::ZERO, vec3a(x, x * 0.3, x * 0.1)) - .write(&mut sock2) - .unwrap(); - sock2.flush().unwrap(); - x += 0.1; - sleep(Duration::from_millis(50)); - } - }); + // let mut sock2 = sock.try_clone().unwrap(); + // thread::spawn(move || { + // let mut x = 0.; + // loop { + // Packet::Position(ob, Vec3A::ZERO, vec3a(x, x * 0.3, x * 0.1)) + // .write(&mut sock2) + // .unwrap(); + // sock2.flush().unwrap(); + // x += 0.1; + // sleep(Duration::from_millis(50)); + // } + // }); if args.push { store.iter(|d| { -- cgit v1.2.3-70-g09d2