Merge pull request #691 from nullworks/BenCat07-patch-1

Update entityhitboxcache.cpp
This commit is contained in:
LightCat 2019-02-24 19:49:54 +01:00 committed by GitHub
commit 564dcef6df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);