mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Store the start fraction and position in the right stack slot.
Oops. Yay, valgrind.
This commit is contained in:
parent
d61cb25a44
commit
e41da2f579
1 changed files with 5 additions and 4 deletions
|
@ -237,16 +237,17 @@ MOD_TraceLine (hull_t *hull, int num,
|
|||
frac[1] = bound (0, frac[1], 1);
|
||||
}
|
||||
|
||||
VectorSubtract (end, start, dist);
|
||||
|
||||
tstack->num = num;
|
||||
tstack->side = side;
|
||||
tstack->plane = plane;
|
||||
VectorCopy (end, tstack->end);
|
||||
tstack++;
|
||||
|
||||
VectorSubtract (end, start, dist);
|
||||
VectorMultAdd (start, frac[side], dist, end);
|
||||
VectorMultAdd (start, frac[side ^ 1], dist, tstack->start);
|
||||
tstack->start_frac = frac[side ^ 1];
|
||||
tstack++;
|
||||
|
||||
VectorMultAdd (start, frac[side], dist, end);
|
||||
|
||||
num = node->children[side];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue