Cleanup. Added define CSTRIKE in build gradle

This commit is contained in:
s1lentq 2015-12-06 03:20:34 +06:00
parent 48ec89893a
commit fd665a9764
4 changed files with 5 additions and 5 deletions

View File

@ -183,7 +183,7 @@ void setupToolchain(NativeBinarySpec b)
if (!unitTestExecutable && !mpLib)
{
cfg.singleDefines 'HOOK_GAMEDLL'
cfg.singleDefines 'HOOK_GAMEDLL', 'CSTRIKE'
}
if (unitTestExecutable)

View File

@ -1221,9 +1221,9 @@ void SV_StudioSetupBones(model_t *pModel, float frame, int sequence, const vec_t
VectorCopy(angles, temp_angles);
if (pEdict)
if (pEdict != NULL)
{
temp_angles[1] = UTIL_GetPlayerGaitYaw(g_engfuncs.pfnIndexOfEdict(pEdict));
temp_angles[1] = UTIL_GetPlayerGaitYaw(ENTINDEX(pEdict));
if (temp_angles[1] < 0)
temp_angles[1] += 360.0f;