From 9152237f2c1f74d94bea1a9f0e6eb2620e99b7e8 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 13 Oct 2023 23:05:12 -0700 Subject: [PATCH] whoops --- src/physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics.rs b/src/physics.rs index 4df5045..bab5533 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -169,7 +169,7 @@ impl PhysicsCamera { pub fn move_mouse(&mut self,mouse_pos:glam::IVec2){ let mut unclamped_mouse_pos=self.clamped_mouse_pos+mouse_pos-self.mouse.pos; unclamped_mouse_pos.y=unclamped_mouse_pos.y.clamp( - self.sensitivity.x.rhs_div_int(self.angle_pitch_lower_limit.get() as i64) as i32, + self.sensitivity.y.rhs_div_int(self.angle_pitch_lower_limit.get() as i64) as i32, self.sensitivity.y.rhs_div_int(self.angle_pitch_upper_limit.get() as i64) as i32, ); self.clamped_mouse_pos=unclamped_mouse_pos;