forked from StrafesNET/strafe-client
the mistake
This commit is contained in:
parent
a3ac815e45
commit
af478bce28
@ -93,14 +93,14 @@ impl MouseInterpolator<'_>{
|
|||||||
/// returns should_empty_queue
|
/// returns should_empty_queue
|
||||||
/// may or may not mutate internal state XD!
|
/// may or may not mutate internal state XD!
|
||||||
fn map_instruction(&mut self,ins:&TimedInstruction<Instruction>)->bool{
|
fn map_instruction(&mut self,ins:&TimedInstruction<Instruction>)->bool{
|
||||||
let mut update_mouse_blocking=false;
|
let mut update_mouse_blocking=true;
|
||||||
match &ins.instruction{
|
match &ins.instruction{
|
||||||
Instruction::Input(input_instruction)=>match input_instruction{
|
Instruction::Input(input_instruction)=>match input_instruction{
|
||||||
&InputInstruction::MoveMouse(m)=>{
|
&InputInstruction::MoveMouse(m)=>{
|
||||||
if !self.timer.is_paused(){
|
if !self.timer.is_paused(){
|
||||||
self.push_mouse_instruction(ins,m);
|
self.push_mouse_instruction(ins,m);
|
||||||
}
|
}
|
||||||
update_mouse_blocking=true;
|
update_mouse_blocking=false;
|
||||||
},
|
},
|
||||||
&InputInstruction::MoveForward(s)=>self.push(ins.time,PhysicsInputInstruction::SetMoveForward(s)),
|
&InputInstruction::MoveForward(s)=>self.push(ins.time,PhysicsInputInstruction::SetMoveForward(s)),
|
||||||
&InputInstruction::MoveLeft(s)=>self.push(ins.time,PhysicsInputInstruction::SetMoveLeft(s)),
|
&InputInstruction::MoveLeft(s)=>self.push(ins.time,PhysicsInputInstruction::SetMoveLeft(s)),
|
||||||
|
Loading…
Reference in New Issue
Block a user