mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-14 15:48:01 +03:00
Merge pull request #26 from jonatan1024/master
SV_StudioSetupBones fix for non-players
This commit is contained in:
commit
eb92f4a615
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user