Merge pull request #26 from jonatan1024/master

SV_StudioSetupBones fix for non-players
This commit is contained in:
s1lentq 2016-02-18 20:13:03 +05:00
commit eb92f4a615

View File

@ -1215,7 +1215,11 @@ void SV_StudioSetupBones(model_t *pModel, float frame, int sequence, const vec_t
VectorCopy(angles, temp_angles);
if (pEdict != NULL)
#ifdef REGAMEDLL_FIXES
if(pEdict != NULL && CBaseEntity::Instance((edict_t*)pEdict)->IsPlayer())
#else
if(pEdict != NULL)
#endif
{
temp_angles[1] = UTIL_GetPlayerGaitYaw(ENTINDEX(pEdict));