return true;
else
{
- if (sv.worldmodel->brushq1.hulls && !VectorCompare(ent->fields.server->mins, ent->fields.server->maxs))
+ if (sv.worldmodel->brushq1.numclipnodes && !VectorCompare(ent->fields.server->mins, ent->fields.server->maxs))
{
// q1bsp/hlbsp use hulls and if the entity does not exactly match
// a hull size it is incorrectly tested, so this code tries to
vec3_t v;
for (i = 0;i < 8;i++)
{
- v[0] = (i & 1) ? ent->fields.server->maxs[0] : ent->fields.server->mins[0];
- v[1] = (i & 2) ? ent->fields.server->maxs[1] : ent->fields.server->mins[1];
- v[2] = (i & 4) ? ent->fields.server->maxs[2] : ent->fields.server->mins[2];
+ v[0] = ent->fields.server->origin[0] + (i & 1) ? ent->fields.server->maxs[0] : ent->fields.server->mins[0];
+ v[1] = ent->fields.server->origin[1] + (i & 2) ? ent->fields.server->maxs[1] : ent->fields.server->mins[1];
+ v[2] = ent->fields.server->origin[2] + (i & 4) ? ent->fields.server->maxs[2] : ent->fields.server->mins[2];
if (SV_PointSuperContents(v) & SUPERCONTENTS_SOLID)
return true;
}