]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - collision.c
I have commit access to DP? When did that happen?
[xonotic/darkplaces.git] / collision.c
index 111eb6d3f7efe2d11f0620bf719bfc83064fd66a..2511205e123bfbc9d1ae143d3ac5c6e52f43ca0c 100644 (file)
@@ -401,12 +401,12 @@ void Collision_ClipTrace (trace_t *trace, const void *cent, const model_t *cmode
                                rhc.trace->plane.normal[1] = DotProduct (tempd, left);
                                rhc.trace->plane.normal[2] = DotProduct (tempd, up);
                        }
-                       // fix offset
-                       VectorAdd (rhc.trace->endpos, offset, rhc.trace->endpos);
                        rhc.trace->ent = (void *) cent;
                }
                else if (rhc.trace->allsolid || rhc.trace->startsolid)
                        rhc.trace->ent = (void *) cent;
+               // fix offset
+               VectorAdd (rhc.trace->endpos, offset, rhc.trace->endpos);
        }
        else
        {