That should fix the issue someone was having
This commit is contained in:
parent
6f129c5791
commit
4365340dd9
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue