Reformat the source

This commit is contained in:
Dmitry Kashitsyn
2024-04-02 23:32:39 +05:00
parent 45916d1794
commit 4664f1455f

View File

@ -165,7 +165,10 @@ impl<'a> AgentData<'a> {
let climbing_out_of_water = self.physics_state.in_liquid().map_or(false, |h| h < 1.0)
&& bearing.z > 0.0
&& self.physics_state.on_wall.is_some();
self.jump_if(bearing.z > 1.5 || climbing_out_of_water || self.traversal_config.can_fly, controller);
self.jump_if(
bearing.z > 1.5 || climbing_out_of_water || self.traversal_config.can_fly,
controller,
);
controller.inputs.move_z = bearing.z;
if bearing.z > 0.0 {
controller.inputs.climb = Some(comp::Climb::Up);