From f834704bc2413394d40751e068bb1f2b9346eb11 Mon Sep 17 00:00:00 2001 From: wjxggg <86282925@qq.com> Date: Sat, 11 Jan 2025 21:46:28 +0800 Subject: [PATCH] fix CBaseAnimating::TestHitboxes --- game/client/c_baseanimating.cpp | 3 ++- game/server/baseanimating.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/game/client/c_baseanimating.cpp b/game/client/c_baseanimating.cpp index d66339e5..718eed20 100644 --- a/game/client/c_baseanimating.cpp +++ b/game/client/c_baseanimating.cpp @@ -4981,9 +4981,10 @@ bool C_BaseAnimating::TestHitboxes( const Ray_t &ray, unsigned int fContentsMask VPhysicsSetObject( pReplace ); } } + return true; } - return true; + return false; } diff --git a/game/server/baseanimating.cpp b/game/server/baseanimating.cpp index 39f03900..67218922 100644 --- a/game/server/baseanimating.cpp +++ b/game/server/baseanimating.cpp @@ -2693,8 +2693,9 @@ bool CBaseAnimating::TestHitboxes( const Ray_t &ray, unsigned int fContentsMask, tr.surface.name = "**studio**"; tr.surface.flags = SURF_HITBOX; tr.surface.surfaceProps = physprops->GetSurfaceIndex( pBone->pszSurfaceProp() ); + return true; } - return true; + return false; } void CBaseAnimating::InitBoneControllers ( void ) // FIXME: rename