From b384930de5044934207d1b2ceb4fa55705094f8b Mon Sep 17 00:00:00 2001 From: aura Date: Wed, 25 Feb 2026 14:45:28 +0100 Subject: movement stuff + fix map zoom when dragging --- src/game/world/trace.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/world/trace.cpp') diff --git a/src/game/world/trace.cpp b/src/game/world/trace.cpp index 43f5f68..fd6a03b 100644 --- a/src/game/world/trace.cpp +++ b/src/game/world/trace.cpp @@ -165,6 +165,7 @@ U8 bsp_trace( BSP_TRACE* trace, BSP* bsp ) { } trace->hit = 0; + trace->startsolid = 0; bsp_trace_nudge( trace ); VEC3 start = trace->in_start; @@ -237,6 +238,7 @@ U8 bsp_trace_sweep_aabb_to_face( if( point_in_inflated_poly( start, face, hull, norm ) ) { trace->hit = 1; trace->frac = 0.f; + trace->startsolid = 1; trace->point = start; trace->normal = norm; trace->propid = face->propid; @@ -375,6 +377,7 @@ U8 bsp_trace( BSP_TRACE* trace, BSP* bsp, AABB hull ) { if( !trace || !bsp ) return 0; + trace->startsolid = 0; trace->hit = 0; bsp_trace_nudge( trace ); VEC3 start = trace->in_start; -- cgit v1.2.3