This commit is contained in:
BenCat07 2018-03-01 14:51:06 +01:00 committed by GitHub
parent 2accc0a354
commit 0970a7778b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,7 +339,8 @@ void CreateMove()
modelcache[i] = RAW_ENT(ent)->GetModel();
if (modelcache[i])
{
stdiocache[i] = g_IModelInfo->GetStudiomodel(modelcache[i]);
stdiocache[i] =
g_IModelInfo->GetStudiomodel(modelcache[i]);
}
}
}
@ -493,7 +494,7 @@ void _FASTCALL ProcessEntityPT(CachedEntity *ent)
Vector &eye_angles =
NET_VECTOR(RAW_ENT(ent), netvar.m_angEyeAngles);
Vector eye_position;
eye_position = hitboxcache[ent->m_IDX][0];
eye_position = hitboxcache[ent->m_IDX][0]->center;
// Main ray tracing area
float sy = sinf(DEG2RAD(eye_angles.y)); // yaw