mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Fix brush selection.
The great cleanup caused a few vital returns to disappear (they probably went to the same place a lot of my lego did).
This commit is contained in:
parent
29d544d766
commit
8f92076b32
1 changed files with 3 additions and 0 deletions
|
@ -989,6 +989,7 @@ hitByRay::::
|
||||||
if (regioned) {
|
if (regioned) {
|
||||||
*time = -1;
|
*time = -1;
|
||||||
*face = -1;
|
*face = -1;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
[self clipRay: p1 : p2 : frontpoint : &frontface : backpoint : &backface];
|
[self clipRay: p1 : p2 : frontpoint : &frontface : backpoint : &backface];
|
||||||
|
@ -997,11 +998,13 @@ hitByRay::::
|
||||||
// entire ray is inside the brush, select first face
|
// entire ray is inside the brush, select first face
|
||||||
*time = 0;
|
*time = 0;
|
||||||
*face = 0;
|
*face = 0;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frontface < 0) { // ray started inside the polytope, don't select it
|
if (frontface < 0) { // ray started inside the polytope, don't select it
|
||||||
*time = -1;
|
*time = -1;
|
||||||
*face = -1;
|
*face = -1;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
VectorSubtract (p2, p1, dir);
|
VectorSubtract (p2, p1, dir);
|
||||||
|
|
Loading…
Reference in a new issue