diff --git a/src/main.rs b/src/main.rs index fdd96a45..2fd5c605 100644 --- a/src/main.rs +++ b/src/main.rs @@ -644,9 +644,8 @@ impl strafe_client::framework::Example for Skybox { let walk_target_velocity=self.physics.walkspeed*control_dir; //autohop (already pressing spacebar; the signal to begin trying to jump is different) if self.physics.grounded&&walk_target_velocity!=self.physics.walk.target_velocity { - //scroll will be implemented with InputInstruction::Jump(true) but it blocks setting self.jump_trying=true strafe_client::instruction::InstructionConsumer::process_instruction(&mut self.physics, strafe_client::instruction::TimedInstruction{ - time,//this is in the past when there is no instructions! + time, instruction:strafe_client::body::PhysicsInstruction::SetWalkTargetVelocity(walk_target_velocity) }); } @@ -663,7 +662,7 @@ impl strafe_client::framework::Example for Skybox { if self.physics.grounded&&self.physics.jump_trying { //scroll will be implemented with InputInstruction::Jump(true) but it blocks setting self.jump_trying=true strafe_client::instruction::InstructionConsumer::process_instruction(&mut self.physics, strafe_client::instruction::TimedInstruction{ - time,//this is in the past when there is no instructions! + time, instruction:strafe_client::body::PhysicsInstruction::Jump }); }