From 9594150810668bad3b9f1f716ecb5c30865c70a4 Mon Sep 17 00:00:00 2001 From: Artem Golubikhin Date: Sat, 9 Dec 2017 19:50:47 +0300 Subject: [PATCH] Fixed head hull detection in SV_HullForBsp (#525) --- rehlds/engine/world.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rehlds/engine/world.cpp b/rehlds/engine/world.cpp index 07337c5..198de77 100644 --- a/rehlds/engine/world.cpp +++ b/rehlds/engine/world.cpp @@ -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];