diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-08-22 11:07:47 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-08-22 11:07:47 +0000 |
commit | 4312c28e10db1a52b875133697b72a860d85f210 (patch) | |
tree | 8965a18227827ccc0381b0be48fa6ed1d01eb685 | |
parent | 4d5ce6a9dc02b40f60375004e550d8556b18c353 (diff) |
Fixed players getting stuck in certain places by making CM_ClipBoxToBrush
reset trace fraction only when both points are inside the brush.
-rw-r--r-- | source/cmodel.c | 5 |
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) |