mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
Clean up the in_leaf test line.
This commit is contained in:
parent
e3d8394b7a
commit
73b93ffd74
1 changed files with 4 additions and 4 deletions
|
@ -204,10 +204,10 @@ MOD_TraceLine (hull_t *hull, int num,
|
||||||
// it's not possible to not be in the leaf when doing a point trace
|
// it's not possible to not be in the leaf when doing a point trace
|
||||||
// if leaf is null, assume we're in the leaf
|
// if leaf is null, assume we're in the leaf
|
||||||
// if plane is null, the trace did not cross the last node plane
|
// if plane is null, the trace did not cross the last node plane
|
||||||
int in_leaf = (trace->type == tr_point || !leaf || !split_plane
|
int in_leaf = 1;
|
||||||
|| check_in_leaf (hull, trace, leaf,
|
if (trace->type != tr_point && leaf && split_plane)
|
||||||
split_plane,
|
in_leaf = check_in_leaf (hull, trace, leaf, split_plane,
|
||||||
vel, start));
|
vel, start);
|
||||||
if (in_leaf && num == CONTENTS_SOLID) {
|
if (in_leaf && num == CONTENTS_SOLID) {
|
||||||
if (!seen_empty && !seen_solid) {
|
if (!seen_empty && !seen_solid) {
|
||||||
// this is the first leaf visited, thus the start leaf
|
// this is the first leaf visited, thus the start leaf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue