2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 23:25:45 +03:00

Fixed head hull detection in SV_HullForBsp (#525)

This commit is contained in:
Artem Golubikhin 2017-12-09 19:50:47 +03:00 committed by Dmitry Novikov
parent e5d26bc4d2
commit 9594150810

View File

@ -197,7 +197,11 @@ hull_t *SV_HullForBsp(edict_t *ent, const vec_t *mins, const vec_t *maxs, vec_t
{
if (size[0] <= 36.0f)
{
#ifdef REHLDS_FIXES
if (size[2] <= (player_maxs[1][2] - player_mins[1][2]))
#else
if (size[2] <= 36.0f)
#endif
hull = &model->hulls[3];
else
hull = &model->hulls[1];