From b7844bb308b4486602eea5ba5398e5bdc7dd0d87 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 24 Oct 2023 19:09:47 -0700 Subject: [PATCH] use compat_worker --- src/physics_worker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/physics_worker.rs b/src/physics_worker.rs index 08b5307..635474d 100644 --- a/src/physics_worker.rs +++ b/src/physics_worker.rs @@ -20,11 +20,11 @@ pub enum InputInstruction { //to be 1 instruction ahead to generate the next state for interpolation. } - pub fn new(physics:crate::physics::PhysicsState,graphics_worker:crate::worker::INWorker)->crate::worker::QNWorker>{ + pub fn new(physics:crate::physics::PhysicsState,graphics_worker:crate::compat_worker::INWorker)->crate::compat_worker::QNWorker>{ let mut mouse_blocking=true; let mut last_mouse_time=physics.next_mouse.time; let mut timeline=std::collections::VecDeque::new(); - crate::worker::QNWorker::new(move |ins:TimedInstruction|{ + crate::compat_worker::QNWorker::new(move |ins:TimedInstruction|{ let mut render=false; if if let Some(phys_input)=match ins.instruction{ InputInstruction::MoveMouse(m)=>{