From af9312d869683dad87a2c0ad53c858207e304e5a Mon Sep 17 00:00:00 2001 From: Mads Buvik Sandvei Date: Mon, 4 Dec 2023 20:56:04 +0100 Subject: [PATCH] clang format --- apps/openmw/mwphysics/movementsolver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwphysics/movementsolver.cpp b/apps/openmw/mwphysics/movementsolver.cpp index d187470801..63ffb055dd 100644 --- a/apps/openmw/mwphysics/movementsolver.cpp +++ b/apps/openmw/mwphysics/movementsolver.cpp @@ -215,10 +215,10 @@ namespace MWPhysics continue; // velocity updated, calculate nextpos again } - // Note, we use an epsilon of 1e-6 instead of std::numeric_limits::epsilon() to avoid doing extremely - // small steps. But if we make it any larger we'll start rejecting subtle movements from e.g. idle animations. - // Note that, although both these comparisons to 1e-6 are logically the same, they test separate floating point - // accuracy cases. + // Note, we use an epsilon of 1e-6 instead of std::numeric_limits::epsilon() to avoid doing extremely + // small steps. But if we make it any larger we'll start rejecting subtle movements from e.g. idle + // animations. Note that, although both these comparisons to 1e-6 are logically the same, they test separate + // floating point accuracy cases. if (diff.length2() > 1e-6 && (newPosition - nextpos).length2() > 1e-6) { // trace to where character would go if there were no obstructions