summaryrefslogtreecommitdiff
path: root/src/game/world/trace.cpp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-01 18:04:13 +0100
committeraura <nw@moneybot.cc>2026-03-01 18:04:13 +0100
commitda27ee18bef82c2152e348e8ff805cb64c80643e (patch)
tree795e8161b4451bec2ef20b62e197aa1df727bc75 /src/game/world/trace.cpp
parent78db9dd151f7c7719787a7e092f0c34ae6b85179 (diff)
fix ramps make movement s m o o t h
Diffstat (limited to 'src/game/world/trace.cpp')
-rw-r--r--src/game/world/trace.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/world/trace.cpp b/src/game/world/trace.cpp
index 1c28d78..3548fa8 100644
--- a/src/game/world/trace.cpp
+++ b/src/game/world/trace.cpp
@@ -243,7 +243,7 @@ U8 bsp_trace_sweep_aabb_to_face(
}
}
- if( fabsf( ndir ) < BSP_TRACE_EPSILON )
+ if( ndir > BSP_TRACE_EPSILON )
return 0;
F32 t_enter = (-radius - s0) / ndir;