summaryrefslogtreecommitdiff
path: root/source/cmodel.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/cmodel.c')
-rw-r--r--source/cmodel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/cmodel.c b/source/cmodel.c
index d2bf424..dc63861 100644
--- a/source/cmodel.c
+++ b/source/cmodel.c
@@ -437,10 +437,11 @@ static void CM_ClipBoxToBrush (vec3_t mins, vec3_t maxs, vec3_t p1, vec3_t p2,
if (!startout)
{ // original point was inside brush
- trace->fraction = 0;
trace->startsolid = qtrue;
- if (!getout)
+ if( !getout ) {
+ trace->fraction = 0;
trace->allsolid = qtrue;
+ }
return;
}
if (enterfrac < leavefrac)