diff options
Diffstat (limited to 'world/src')
-rw-r--r-- | world/src/main.rs | 24 |
1 files changed, 12 insertions, 12 deletions
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| { |