]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
I have commit access to DP? When did that happen?
authormercury <mercury@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 29 May 2002 11:28:09 +0000 (11:28 +0000)
committermercury <mercury@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 29 May 2002 11:28:09 +0000 (11:28 +0000)
Fix the flying backpacks, just moving two lines, one of which is a comment.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1877 d7cf8633-e32d-0410-b094-e92efae38249

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
        {