make a rotated_bbox override the model hulls

This commit is contained in:
Bill Currie 2001-07-27 19:48:15 +00:00
parent a3368d0f82
commit 65475fbd6e

View file

@ -1309,12 +1309,6 @@ AddLinksToPmove (areanode_t *node)
VectorCopy (SVFIELD (check, origin, vector), pe->origin);
pe->info = NUM_FOR_EDICT (&sv_pr_state, check);
if (SVFIELD (check, solid, float) == SOLID_BSP) {
pe->model = sv.models[(int) (SVFIELD (check, modelindex, float))];
} else {
pe->model = NULL;
VectorCopy (SVFIELD (check, mins, vector), pe->mins);
VectorCopy (SVFIELD (check, maxs, vector), pe->maxs);
if (sv_fields.rotated_bbox != -1
&& SVFIELD (check, rotated_bbox, integer)) {
int h = SVFIELD (check, rotated_bbox, integer);
@ -1322,6 +1316,12 @@ AddLinksToPmove (areanode_t *node)
pe->hull = &pf_hull_list[h - 1];
} else {
pe->hull = 0;
if (SVFIELD (check, solid, float) == SOLID_BSP) {
pe->model = sv.models[(int) (SVFIELD (check, modelindex, float))];
} else {
pe->model = NULL;
VectorCopy (SVFIELD (check, mins, vector), pe->mins);
VectorCopy (SVFIELD (check, maxs, vector), pe->maxs);
}
}
}