From fcee94c166058035941e9eb6f77dab775de7fd5e Mon Sep 17 00:00:00 2001 From: LightCat Date: Sun, 24 Feb 2019 19:47:57 +0100 Subject: [PATCH] Update entityhitboxcache.cpp --- src/entityhitboxcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entityhitboxcache.cpp b/src/entityhitboxcache.cpp index 31f86977..5e023c81 100644 --- a/src/entityhitboxcache.cpp +++ b/src/entityhitboxcache.cpp @@ -129,7 +129,7 @@ matrix3x4_t *EntityHitboxCache::GetBones() if (g_Settings.is_create_move) { #if ENABLE_VISUALS - if (!*bonecache_enabled || IsPlayerInvisible(parent_ref)) + if (!*bonecache_enabled || parent_ref->m_Type() != ENTITY_PLAYER || IsPlayerInvisible(parent_ref)) { PROF_SECTION(bone_setup); bones_setup = RAW_ENT(parent_ref)->SetupBones(bones, MAXSTUDIOBONES, 0x7FF00, bones_setup_time);