cargo fmt
This commit is contained in:
parent
bb95469f44
commit
0ea4c00151
|
@ -487,11 +487,12 @@ pub fn apply_input_to_player(
|
||||||
pitch_yaw_rot[1] -= mouse_delta.x / win_res_x;
|
pitch_yaw_rot[1] -= mouse_delta.x / win_res_x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pitch_yaw_rot *= 2.0 * if settings.is_zooming {
|
pitch_yaw_rot *= 2.0
|
||||||
settings.zoom_sensitivity_factor
|
* if settings.is_zooming {
|
||||||
} else {
|
settings.zoom_sensitivity_factor
|
||||||
1.0
|
} else {
|
||||||
};
|
1.0
|
||||||
|
};
|
||||||
|
|
||||||
// Apply rotation to player
|
// Apply rotation to player
|
||||||
if pitch_yaw_rot != Vec3::ZERO {
|
if pitch_yaw_rot != Vec3::ZERO {
|
||||||
|
|
Loading…
Reference in a new issue