That should fix the issue someone was having

This commit is contained in:
eukos 2015-08-31 22:51:00 +02:00
parent 6f129c5791
commit 4365340dd9

View file

@ -135,15 +135,11 @@ hull_t *SV_HullForEntity (edict_t *ent, vec3_t mins, vec3_t maxs, vec3_t offset)
// decide which clipping hull to use, based on the size
if (ent->v.solid == SOLID_BSP)
{ // explicit hulls in the BSP model
// if (ent->v.movetype != MOVETYPE_PUSH)
// // Sys_Error ("SOLID_BSP without MOVETYPE_PUSH");
{
model = sv.models[ (int)ent->v.modelindex ];
if (!model || model->type != mod_brush){
Con_Printf ("WARNING: SOLID_BSP with a non bsp model\n Changing it to SOLID_NOT\n");
ent->v.solid = SOLID_NOT;
Con_DPrintf ("WARNING: SOLID_BSP with a non bsp model\nChanging it to SOLID_NOT\n");
VectorSubtract (ent->v.mins, maxs, hullmins);
VectorSubtract (ent->v.maxs, mins, hullmaxs);
hull = SV_HullForBox (hullmins, hullmaxs);