fix divide by zero crashes when mouse has not moved

This commit is contained in:
2025-01-21 05:34:45 -08:00
parent a612d1f864
commit 76bafa4d0a
2 changed files with 11 additions and 1 deletions
lib/common/src
strafe-client/src

@ -14,6 +14,7 @@ impl<T> Time<T>{
pub const MIN:Self=Self::raw(i64::MIN);
pub const MAX:Self=Self::raw(i64::MAX);
pub const ZERO:Self=Self::raw(0);
pub const EPSILON:Self=Self::raw(1);
pub const ONE_SECOND:Self=Self::raw(1_000_000_000);
pub const ONE_MILLISECOND:Self=Self::raw(1_000_000);
pub const ONE_MICROSECOND:Self=Self::raw(1_000);