]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_phys.c
rewrote RecursiveHullCheck, no longer gets stuck on angle changes, and is generally...
[xonotic/darkplaces.git] / sv_phys.c
index 9fc909d34ca4bf002d905b3a82844c981a8f4bd4..3cf4fd1a11f7d24dd5ddded80dc0da1b9376f54b 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -356,6 +356,8 @@ int SV_FlyMove (edict_t *ent, float time, trace_t *steptrace)
                                return 7;
                        }
                        CrossProduct (planes[0], planes[1], dir);
+                       // LordHavoc: thanks to taniwha of QuakeForge for pointing out this fix for slowed falling in corners
+                       VectorNormalize(dir);
                        d = DotProduct (dir, ent->v.velocity);
                        VectorScale (dir, d, ent->v.velocity);
                }