]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix ie
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Feb 2009 18:22:19 +0000 (18:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Feb 2009 18:22:19 +0000 (18:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8752 d7cf8633-e32d-0410-b094-e92efae38249

collision.c

index d388204e47161a1491102d345389cd606237abad..c993a668ed9527535d78a37e1d2c97e07a531743 100644 (file)
@@ -775,6 +775,7 @@ void Collision_TraceLineBrushFloat(trace_t *trace, const vec3_t linestart, const
                                        // calculate the nudged fraction and impact normal we'll
                                        // need if we accept this collision later
                                        enterfrac2 = (d1 - collision_impactnudge.value) * imove;
+                                       ie = 1.0f - enterfrac;
                                        newimpactplane.normal[0] = startplane->normal[0] * ie + endplane->normal[0] * enterfrac;
                                        newimpactplane.normal[1] = startplane->normal[1] * ie + endplane->normal[1] * enterfrac;
                                        newimpactplane.normal[2] = startplane->normal[2] * ie + endplane->normal[2] * enterfrac;