From 58541281642faa660b969921103e25d81a299337 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 19 Sep 2023 00:00:14 -0700 Subject: [PATCH] edit comments --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index fdd96a4..2fd5c60 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 }); }