edit comments

This commit is contained in:
Quaternions 2023-09-19 00:00:14 -07:00
parent db5b3328bd
commit 5854128164

View File

@ -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
});
}