summaryrefslogtreecommitdiff
path: root/src/game/world
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
parent78db9dd151f7c7719787a7e092f0c34ae6b85179 (diff)
fix ramps make movement s m o o t h
Diffstat (limited to 'src/game/world')
-rw-r--r--src/game/world/trace.cpp2
-rw-r--r--src/game/world/trace.h2
2 files changed, 2 insertions, 2 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;
diff --git a/src/game/world/trace.h b/src/game/world/trace.h
index 644515d..d04ed6b 100644
--- a/src/game/world/trace.h
+++ b/src/game/world/trace.h
@@ -5,7 +5,7 @@
// quake uses 1 / 32
const F32 BSP_TRACE_EPSILON = 1.f / 64.f;
-const F32 BSP_EDGE_TOLERANCE = 1.f / 64.f;
+const F32 BSP_EDGE_TOLERANCE = 1.f / 16.f;
struct BSP_TRACE {
VEC3 in_start;