mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
make a rotated_bbox override the model hulls
This commit is contained in:
parent
a3368d0f82
commit
65475fbd6e
1 changed files with 11 additions and 11 deletions
|
@ -1309,19 +1309,19 @@ AddLinksToPmove (areanode_t *node)
|
||||||
VectorCopy (SVFIELD (check, origin, vector), pe->origin);
|
VectorCopy (SVFIELD (check, origin, vector), pe->origin);
|
||||||
pe->info = NUM_FOR_EDICT (&sv_pr_state, check);
|
pe->info = NUM_FOR_EDICT (&sv_pr_state, check);
|
||||||
|
|
||||||
if (SVFIELD (check, solid, float) == SOLID_BSP) {
|
if (sv_fields.rotated_bbox != -1
|
||||||
pe->model = sv.models[(int) (SVFIELD (check, modelindex, float))];
|
&& SVFIELD (check, rotated_bbox, integer)) {
|
||||||
|
int h = SVFIELD (check, rotated_bbox, integer);
|
||||||
|
extern hull_t pf_hull_list[];
|
||||||
|
pe->hull = &pf_hull_list[h - 1];
|
||||||
} else {
|
} else {
|
||||||
pe->model = NULL;
|
pe->hull = 0;
|
||||||
VectorCopy (SVFIELD (check, mins, vector), pe->mins);
|
if (SVFIELD (check, solid, float) == SOLID_BSP) {
|
||||||
VectorCopy (SVFIELD (check, maxs, vector), pe->maxs);
|
pe->model = sv.models[(int) (SVFIELD (check, modelindex, float))];
|
||||||
if (sv_fields.rotated_bbox != -1
|
|
||||||
&& SVFIELD (check, rotated_bbox, integer)) {
|
|
||||||
int h = SVFIELD (check, rotated_bbox, integer);
|
|
||||||
extern hull_t pf_hull_list[];
|
|
||||||
pe->hull = &pf_hull_list[h - 1];
|
|
||||||
} else {
|
} else {
|
||||||
pe->hull = 0;
|
pe->model = NULL;
|
||||||
|
VectorCopy (SVFIELD (check, mins, vector), pe->mins);
|
||||||
|
VectorCopy (SVFIELD (check, maxs, vector), pe->maxs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue